x86/vvmx: add mov-ss blocking check to vmentry
authorSergey Dyasli <sergey.dyasli@citrix.com>
Tue, 14 Mar 2017 11:24:38 +0000 (12:24 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Mar 2017 11:24:38 +0000 (12:24 +0100)
commit7ecd11c90a133ab8000ebf7f5309f6aa95f1f7db
tree4dea3be99c3107526af2ff769e2e161cea24bc1e
parentbd8ad2a52aba4911ada897c72f8795172a09a193
x86/vvmx: add mov-ss blocking check to vmentry

Intel SDM states that if there is a current VMCS and there is MOV-SS
blocking, VMFailValid occurs and control passes to the next instruction.

Implement such behaviour for nested vmlaunch and vmresume.

Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h