qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] enable SVM EFER bit


From: Alexander Graf
Subject: [Qemu-devel] [PATCH] enable SVM EFER bit
Date: Tue, 03 Jun 2008 17:02:02 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20071114)

Due to the recently introduces checks for SVM activation, the SVM instructions currently throw a #UD exception if they are not activated. The activation happens through a write to the EFER which does not support the SVM bit yet.

This patch adds the SVME bit to the EFER MSR write. It makes KVM work for me again.

Alex



Index: target-i386/op_helper.c
===================================================================
--- target-i386/op_helper.c     (revision 4652)
+++ target-i386/op_helper.c     (working copy)
@@ -3069,6 +3069,8 @@
                 update_mask |= MSR_EFER_FFXSR;
             if (env->cpuid_ext2_features & CPUID_EXT2_NX)
                 update_mask |= MSR_EFER_NXE;
+            if (env->cpuid_ext3_features & CPUID_EXT3_SVM)
+                update_mask |= MSR_EFER_SVME;
             env->efer = (env->efer & ~update_mask) |
             (val & update_mask);
         }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]