All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] enable SVM EFER bit
@ 2008-06-03 15:02 Alexander Graf
  2008-06-03 19:11 ` Anthony Liguori
  2008-06-04 13:02 ` [Qemu-devel] " Fabrice Bellard
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Graf @ 2008-06-03 15:02 UTC (permalink / raw)
  To: fabrice; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

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




[-- Attachment #2: svm.patch --]
[-- Type: text/x-patch, Size: 567 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-04 14:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 15:02 [Qemu-devel] [PATCH] enable SVM EFER bit Alexander Graf
2008-06-03 19:11 ` Anthony Liguori
2008-06-04 13:02 ` [Qemu-devel] " Fabrice Bellard
2008-06-04 14:30   ` Alexander Graf
2008-06-04 14:33   ` Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.