]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Handle split-lock #AC exceptions that happen in L2
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:22:44 +0000 (10:22 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 08:31:16 +0000 (04:31 -0400)
commite65ad23cdafbdb1ac6fbbfc7c6b18182749e382b
treed6e79c9ebfb67bce1cdb45ee7f331c2aea95babc
parentccc6caa91ec8455db8adbdebce96134b60ddb474
KVM: nVMX: Handle split-lock #AC exceptions that happen in L2

Mark #ACs that won't be reinjected to the guest as wanted by L0 so that
KVM handles split-lock #AC from L2 instead of forwarding the exception to
L1.  Split-lock #AC isn't yet virtualized, i.e. L1 will treat it like a
regular #AC and do the wrong thing, e.g. reinject it into L2.

Fixes: 98abc7a22180 ("KVM: VMX: Extend VMXs #AC interceptor to handle split lock #AC in guest")
Cc: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622172244.3561540-1-seanjc@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmcs.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h