OSDN Git Service

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)
commitf1b026a3310a441f504640dd3d9765eb533386b8
tree4dde09e3c2da83d6ad2c5f2c23e7a50ca7ff774c
parent3853be2603191829b442b64dac6ae8ba0c027bf9
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