aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorTom Lendacky <[email protected]>2021-05-06 20:14:41 +0000
committerPaolo Bonzini <[email protected]>2021-05-07 10:06:23 +0000
commitce7ea0cfdc2e9ff31d12da31c3226deddb9644f5 (patch)
tree921b38c2bc256a037a897cdb62889aeab8f3fd4f /tools/perf/scripts/python/intel-pt-events.py
parentKVM: SVM: Invert user pointer casting in SEV {en,de}crypt helpers (diff)
downloadkernel-ce7ea0cfdc2e9ff31d12da31c3226deddb9644f5.tar.gz
kernel-ce7ea0cfdc2e9ff31d12da31c3226deddb9644f5.zip
KVM: SVM: Move GHCB unmapping to fix RCU warning
When an SEV-ES guest is running, the GHCB is unmapped as part of the vCPU run support. However, kvm_vcpu_unmap() triggers an RCU dereference warning with CONFIG_PROVE_LOCKING=y because the SRCU lock is released before invoking the vCPU run support. Move the GHCB unmapping into the prepare_guest_switch callback, which is invoked while still holding the SRCU lock, eliminating the RCU dereference warning. Fixes: 291bd20d5d88 ("KVM: SVM: Add initial support for a VMGEXIT VMEXIT") Reported-by: Borislav Petkov <[email protected]> Signed-off-by: Tom Lendacky <[email protected]> Message-Id: <b2f9b79d15166f2c3e4375c0d9bc3268b7696455.1620332081.git.thomas.lendacky@amd.com> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions