nestedsvm: allow l1 guest to use OSXSAVE
authorChristoph Egger <Christoph.Egger@amd.com>
Fri, 8 Jul 2011 07:30:56 +0000 (08:30 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Fri, 8 Jul 2011 07:30:56 +0000 (08:30 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen/arch/x86/hvm/svm/svmdebug.c

index c2f1abcabe30a8eaefc2c7b690022322b811eae8..68e1c5a7d8ac253065f31f8b7b945d61f6149bab 100644 (file)
@@ -124,8 +124,13 @@ svm_vmcb_isvalid(const char *from, struct vmcb_struct *vmcb,
         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);
     }