]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: nVMX: Always sync GUEST_BNDCFGS when it comes from vmcs01
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 7 May 2019 16:06:28 +0000 (09:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:13:00 +0000 (09:13 +0200)
commit3ea511becc9dbcce71043549b9ee641cf4ad1e3f
treec46df861141b5c75dedbdb24b852e2a0ba739e26
parent4ff7d3d1986f7c8ae88b943f43d46f1362ac8d07
KVM: nVMX: Always sync GUEST_BNDCFGS when it comes from vmcs01

commit 3b013a2972d5bc344d6eaa8f24fdfe268211e45f upstream.

If L1 does not set VM_ENTRY_LOAD_BNDCFGS, then L1's BNDCFGS value must
be propagated to vmcs02 since KVM always runs with VM_ENTRY_LOAD_BNDCFGS
when MPX is supported.  Because the value effectively comes from vmcs01,
vmcs02 must be updated even if vmcs12 is clean.

Fixes: 62cf9bd8118c4 ("KVM: nVMX: Fix emulation of VM_ENTRY_LOAD_BNDCFGS")
Cc: stable@vger.kernel.org
Cc: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/nested.c