]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: Check memory operand to INVVPID
authorJim Mattson <jmattson@google.com>
Wed, 28 Jun 2017 16:37:37 +0000 (09:37 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 Jun 2017 20:38:37 +0000 (22:38 +0200)
commitc32512b7318cb59dee39a045cd9d28ca66073eb0
tree9359eca2845972ed6e408dc76e7d604826a2a755
parent92e03430bfb4dba236f332006295b16b1a511871
kvm: nVMX: Check memory operand to INVVPID

The memory operand fetched for INVVPID is 128 bits. Bits 63:16 are
reserved and must be zero.  Otherwise, the instruction fails with
VMfail(Invalid operand to INVEPT/INVVPID).  If the INVVPID_TYPE is 0
(individual address invalidation), then bits 127:64 must be in
canonical form, or the instruction fails with VMfail(Invalid operand
to INVEPT/INVVPID).

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c