KVM: nVMX: Fix emulation of VM_ENTRY_LOAD_BNDCFGS
authorLiran Alon <liran.alon@oracle.com>
Fri, 14 Sep 2018 00:25:54 +0000 (03:25 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Oct 2018 13:40:59 +0000 (15:40 +0200)
commit62cf9bd8118c4009f02c477ef78c723f49e53e16
tree32b75b49577704da7e1458d6f7e2268bf89d27db
parent503234b3fdcaa578395c07e393ea3e5d13958824
KVM: nVMX: Fix emulation of VM_ENTRY_LOAD_BNDCFGS

L2 IA32_BNDCFGS should be updated with vmcs12->guest_bndcfgs only
when VM_ENTRY_LOAD_BNDCFGS is specified in vmcs12->vm_entry_controls.

Otherwise, L2 IA32_BNDCFGS should be set to vmcs01->guest_bndcfgs which
is L1 IA32_BNDCFGS.

Reviewed-by: Nikita Leshchenko <nikita.leshchenko@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c