KVM: align valid EFER bits with the features of the host system
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 31 Jan 2008 13:57:38 +0000 (14:57 +0100)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:18 +0000 (11:53 +0300)
commit50a37eb4e05efaa7bac6a948fd4db1a48c728b99
tree34195810be002db84cfafb9ed706d48bb6752d52
parentf2b4b7ddf633ffa24ce7c89c9e0d8a06463484e3
KVM: align valid EFER bits with the features of the host system

This patch aligns the bits the guest can set in the EFER register with the
features in the host processor. Currently it lets EFER.NX disabled if the
processor does not support it and enables EFER.LME and EFER.LMA only for KVM on
64 bit hosts.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c