KVM: nVMX: check vmcs12 for valid activity state
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Apr 2013 13:00:27 +0000 (15:00 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 16 Apr 2013 21:22:14 +0000 (18:22 -0300)
commit26539bd0e446a54665f9d6f4c69a21140b2e1d85
treeb662203e933d025758f37ccfd5d789eebc09af24
parent79558f112fc0352e057f7b5e158e3d88b8b62c60
KVM: nVMX: check vmcs12 for valid activity state

KVM does not use the activity state VMCS field, and does not support
it in nested VMX either (the corresponding bits in the misc VMX feature
MSR are zero).  Fail entry if the activity state is set to anything but
"active".

Since the value will always be the same for L1 and L2, we do not need
to read and write the corresponding VMCS field on L1/L2 transitions,
either.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c