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)
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>

No differences found