]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Apply addr size mask to effective address for VMX instructions
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 23 Jan 2019 22:39:24 +0000 (14:39 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:23 +0000 (22:48 +0100)
commit40df0bccd96b32f97e8930f9b694de5191ea138c
tree3eb392e9956418c9e1aeae0f6767a8ab0719f63f
parent71efc4d3f86a8f7a5b761ba0b49e43b60e924e76
KVM: nVMX: Apply addr size mask to effective address for VMX instructions

The address size of an instruction affects the effective address, not
the virtual/linear address.  The final address may still be truncated,
e.g. to 32-bits outside of long mode, but that happens irrespective of
the address size, e.g. a 32-bit address size can yield a 64-bit virtual
address when using FS/GS with a non-zero base.

Fixes: 20a95546d0ae ("KVM: nVMX: Decoding memory operands of VMX instructions")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c