Skip to contentSkip to conversation

nestedsvm: allow l1 guest to use OSXSAVE

PATCH New Christoph Egger 1 participant 1 message Jul 4, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nestedsvm: allow l1 guest to use OSXSAVE

Allow l1 guest to use OSXSAVE.

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
xen/arch/x86/hvm/svm/svmdebug.c +7 -2
diff -r 72f1eafaa2c8 xen/arch/x86/hvm/svm/svmdebug.c
@@ -124,8 +124,13 @@ svm_vmcb_isvalid(const char *from, struc
         PRINTF("CR3: MBZ bits are set (0x%"PRIx64")\n", vmcb->_cr3);
     }
 
-    if ((vmcb->_cr4 >> 11U) != 0) {
-        PRINTF("CR4: bits [63:11] are not zero (0x%"PRIx64")\n",
+    if ((vmcb->_cr4 >> 19U) != 0) {
+        PRINTF("CR4: bits [63:19] are not zero (0x%"PRIx64")\n",
+                vmcb->_cr4);
+    }
+
+    if (((vmcb->_cr4 >> 11U) & 0x7fU) != 0) {
+        PRINTF("CR4: bits [17:11] are not zero (0x%"PRIx64")\n",
                 vmcb->_cr4);
     }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel