]> www.infradead.org Git - nvme.git/commit
KVM: SVM: Remove the need to trigger an UNBLOCK event on AP creation
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 22 May 2024 18:31:58 +0000 (13:31 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2024 16:38:17 +0000 (12:38 -0400)
commitb2ec042347fde5df1239d228b4d86ca642944870
tree1ca257de03a3bbed443fa9293500978d2e1d79ae
parent73137f59246da530c29674a506f83a18fe327946
KVM: SVM: Remove the need to trigger an UNBLOCK event on AP creation

All SNP APs are initially started using the APIC INIT/SIPI sequence in
the guest. This sequence moves the AP MP state from
KVM_MP_STATE_UNINITIALIZED to KVM_MP_STATE_RUNNABLE, so there is no need
to attempt the UNBLOCK.

As it is, the UNBLOCK support in SVM is only enabled when AVIC is
enabled. When AVIC is disabled, AP creation is still successful.

Remove the KVM_REQ_UNBLOCK request from the AP creation code and revert
the changes to the vcpu_unblocking() kvm_x86_ops path.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h