KVM: nVMX: Validate EFER values for VM_ENTRY/EXIT_LOAD_IA32_EFER
authorJan Kiszka <jan.kiszka@web.de>
Sat, 20 Apr 2013 08:52:36 +0000 (10:52 +0200)
committerGleb Natapov <gleb@redhat.com>
Mon, 22 Apr 2013 09:53:42 +0000 (12:53 +0300)
commit384bb783275145b70d769acf4c687957d1c61802
tree8db3286f89b5a1cf38ba2e3231b94c822b229199
parentea8ceb8354e1c84a13cf2a8e915dc74f96759393
KVM: nVMX: Validate EFER values for VM_ENTRY/EXIT_LOAD_IA32_EFER

As we may emulate the loading of EFER on VM-entry and VM-exit, implement
the checks that VMX performs on the guest and host values on vmlaunch/
vmresume. Factor out kvm_valid_efer for this purpose which checks for
set reserved bits.

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