Skip to contentSkip to conversation

nsvm: fix check if guest enabled nested paging

PATCH Applied Christoph Egger 2 participants 2 messages Jun 21, 2012 – Jun 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nsvm: fix check if guest enabled nested paging

Fix check if guest enabled nested paging.
Fixes crashes with Windows guests when shadow-on-nested is used.

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/nestedsvm.c +3 -0
diff -r 195185eba60b xen/arch/x86/hvm/svm/nestedsvm.c
@@ -935,6 +935,9 @@ nsvm_vmcb_guest_intercepts_exitcode(stru
         return 0;
 
     case VMEXIT_NPF:
+        if (nestedhvm_paging_mode_hap(v))
+            break;
+        return 0;
     case VMEXIT_INVALID:
         /* Always intercepted */
         break;

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