summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorJoerg Roedel2010-05-05 16:04:44 +0200
committerAvi Kivity2010-08-01 09:35:38 +0200
commiteec4b140c924b4c650e9a89e01d223266490e325 (patch)
tree9af6ed57f7a62da94ffdd4b29473d9cb093a93d7 /arch/x86/kvm/svm.c
parentKVM: SVM: Dump vmcb contents on failed vmrun (diff)
downloadkernel-qcow2-linux-eec4b140c924b4c650e9a89e01d223266490e325.tar.gz
kernel-qcow2-linux-eec4b140c924b4c650e9a89e01d223266490e325.tar.xz
kernel-qcow2-linux-eec4b140c924b4c650e9a89e01d223266490e325.zip
KVM: SVM: Allow EFER.LMSLE to be set with nested svm
This patch enables setting of efer bit 13 which is allowed in all SVM capable processors. This is necessary for the SLES11 version of Xen 4.0 to boot with nested svm. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 685cffff01f3..41fe0381a1ae 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -640,7 +640,7 @@ static __init int svm_hardware_setup(void)
if (nested) {
printk(KERN_INFO "kvm: Nested Virtualization enabled\n");
- kvm_enable_efer_bits(EFER_SVME);
+ kvm_enable_efer_bits(EFER_SVME | EFER_LMSLE);
}
for_each_possible_cpu(cpu) {