diff options
author | 2021-12-08 01:52:31 +0000 | |
---|---|---|
committer | 2022-01-19 12:14:48 -0500 | |
commit | 935a7333958e91b5d0c1b0ebc75a5cefdbb34dd5 (patch) | |
tree | b52d7a8480650479786b2c2ea3457d4029905769 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: VMX: Don't do full kick when handling posted interrupt wakeup (diff) | |
download | wireguard-linux-935a7333958e91b5d0c1b0ebc75a5cefdbb34dd5.tar.xz wireguard-linux-935a7333958e91b5d0c1b0ebc75a5cefdbb34dd5.zip |
KVM: SVM: Drop AVIC's intermediate avic_set_running() helper
Drop avic_set_running() in favor of calling avic_vcpu_{load,put}()
directly, and modify the block+put path to use preempt_disable/enable()
instead of get/put_cpu(), as it doesn't actually care about the current
pCPU associated with the vCPU. Opportunistically add lockdep assertions
as being preempted in avic_vcpu_put() would lead to consuming stale data,
even though doing so _in the current code base_ would not be fatal.
Add a much needed comment explaining why svm_vcpu_blocking() needs to
unload the AVIC and update the IRTE _before_ the vCPU starts blocking.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211208015236.1616697-22-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions