summaryrefslogtreecommitdiff
path: root/Documentation/virt
diff options
context:
space:
mode:
authorWanpeng Li <wanpengli@tencent.com>2021-04-22 16:34:19 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-04-26 05:19:28 -0400
commitb86bb11e3a79ac0db9a6786b1fe80f74321cb076 (patch)
tree26b73b76b76c5c681ee7e4e47d5ef3d955fd9b95 /Documentation/virt
parent2f15d027c05fac406decdb5eceb9ec0902b68f53 (diff)
KVM: X86: Fix failure to boost kernel lock holder candidate in SEV-ES guests
Commit f1c6366e3043 ("KVM: SVM: Add required changes to support intercepts under SEV-ES") prevents hypervisor accesses guest register state when the guest is running under SEV-ES. The initial value of vcpu->arch.guest_state_protected is false, it will not be updated in preemption notifiers after this commit which means that the kernel spinlock lock holder will always be skipped to boost. Let's fix it by always treating preempted is in the guest kernel mode, false positive is better than skip completely. Fixes: f1c6366e3043 (KVM: SVM: Add required changes to support intercepts under SEV-ES) Signed-off-by: Wanpeng Li <wanpengli@tencent.com> Message-Id: <1619080459-30032-1-git-send-email-wanpengli@tencent.com> Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/virt')
0 files changed, 0 insertions, 0 deletions