Fix check if guest enabled nested paging.
authorChristoph Egger <Christoph.Egger@amd.com>
Mon, 25 Jun 2012 09:18:23 +0000 (10:18 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Mon, 25 Jun 2012 09:18:23 +0000 (10:18 +0100)
Fixes crashes with Windows guests when shadow-on-nested is used.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/svm/nestedsvm.c

index 6ed32604cfc403d9167dd02329c41ec670280a51..0b6ff8867231a39679744a3d09855ed20e1632e3 100644 (file)
@@ -935,6 +935,9 @@ nsvm_vmcb_guest_intercepts_exitcode(struct vcpu *v,
         return 0;
 
     case VMEXIT_NPF:
+        if (nestedhvm_paging_mode_hap(v))
+            break;
+        return 0;
     case VMEXIT_INVALID:
         /* Always intercepted */
         break;