]> www.infradead.org Git - users/dwmw2/linux.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>
Tue, 12 Feb 2019 12:12:39 +0000 (13:12 +0100)
commit752d6335ca3efd9047d5942c2bc0cf6b0a7d2983
tree68622bdcef3ae89bb9d32d3a89148fff8909cc2c
parent38b5677ba565720f4852f9dec4bf1f85fe19ac53
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: 064aea774768 ("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