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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:46:52 +0000 (11:46 +0200)
commit3b013a2972d5bc344d6eaa8f24fdfe268211e45f
tree6a948c4850781eaf22ea829730d727cf14fc571d
parentd28f4290b53a157191ed9991ad05dffe9e8c0c89
KVM: nVMX: Always sync GUEST_BNDCFGS when it comes from vmcs01

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>
arch/x86/kvm/vmx/nested.c