]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Fix nested bus lock VM exit
authorChenyi Qiang <chenyi.qiang@intel.com>
Tue, 14 Sep 2021 09:50:41 +0000 (17:50 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Sep 2021 14:33:12 +0000 (10:33 -0400)
commitba6c2c0d63b40196049e36ba9c82ceb73f85cc08
treed1ebed0be210f4e866f2033d1865d1920ec75002
parenta57e6c6a875cce85bd175437ea00e94c6691b0f0
KVM: nVMX: Fix nested bus lock VM exit

Nested bus lock VM exits are not supported yet. If L2 triggers bus lock
VM exit, it will be directed to L1 VMM, which would cause unexpected
behavior. Therefore, handle L2's bus lock VM exits in L0 directly.

Fixes: ebb3c60042f5 ("KVM: VMX: Enable bus lock VM exit")
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20210914095041.29764-1-chenyi.qiang@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c