]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Ignore SIPI that arrives in L2 when vCPU is not in WFS
authorSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 23:15:57 +0000 (23:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:03:06 +0000 (12:03 -0400)
commite8a81312e3f676db9220c3df106ce383854206b6
treeb5fbdd1bcabae9013eb3cca669b9601266a03f47
parentb01b92fbd9071615120689c1f250a06bc9d34e5e
KVM: nVMX: Ignore SIPI that arrives in L2 when vCPU is not in WFS

Fall through to handling other pending exception/events for L2 if SIPI
is pending while the CPU is not in Wait-for-SIPI.  KVM correctly ignores
the event, but incorrectly returns immediately, e.g. a SIPI coincident
with another event could lead to KVM incorrectly routing the event to L1
instead of L2.

Fixes: 20beab7c2604 ("KVM: x86: emulate wait-for-SIPI and SIPI-VMExit")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20220830231614.3580124-11-seanjc@google.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c