]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd1ac719bb16d355f34a34765b63d09bc6c18351
treeb662203e933d025758f37ccfd5d789eebc09af24
parent6b78660a0a8d4ee0425d0aa987c907523f0cd506
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