KVM: nVMX: Provide EFER.LMA saving support
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 13 Mar 2013 15:06:41 +0000 (16:06 +0100)
committerGleb Natapov <gleb@redhat.com>
Thu, 14 Mar 2013 08:00:55 +0000 (10:00 +0200)
commitc18911a23ce1dec27fa3325b50587de2569d26f8
tree97b89423b1dfdbab7c18ce59073057d4a8d0221e
parenteabeaaccfca0ed61b8e00a09b8cfa703c4f11b59
KVM: nVMX: Provide EFER.LMA saving support

We will need EFER.LMA saving to provide unrestricted guest mode. All
what is missing for this is picking up EFER.LMA from VM_ENTRY_CONTROLS
on L2->L1 switches. If the host does not support EFER.LMA saving,
no change is performed, otherwise we properly emulate for L1 what the
hardware does for L0. Advertise the support, depending on the host
feature.

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