]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Validate the IA32_BNDCFGS on nested VM-entry
authorWanpeng Li <wanpeng.li@hotmail.com>
Mon, 6 Nov 2017 00:54:48 +0000 (16:54 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Nov 2017 12:20:13 +0000 (13:20 +0100)
commit1dcabe4202ed1c00aae2bc4c4d0a148dbcd88add
tree4dde09e3c2da83d6ad2c5f2c23e7a50ca7ff774c
parent834039d1a6dd20d705680f03220d3dfbf440108d
KVM: nVMX: Validate the IA32_BNDCFGS on nested VM-entry

According to the SDM, if the "load IA32_BNDCFGS" VM-entry controls is 1, the
following checks are performed on the field for the IA32_BNDCFGS MSR:
 - Bits reserved in the IA32_BNDCFGS MSR must be 0.
 - The linear address in bits 63:12 must be canonical.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Jim Mattson <jmattson@google.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c