aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/svm
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2012-06-25 10:18:23 +0100
committerChristoph Egger <Christoph.Egger@amd.com>2012-06-25 10:18:23 +0100
commitb1719daed04ad9611dec60a3c42557659870c386 (patch)
treec3a9cdeafacddf1a7ee8b880e29f61332aa95c86 /xen/arch/x86/hvm/svm
parent1b25d80157c0cfff9b142b74e0858cc745e95039 (diff)
downloadxen-b1719daed04ad9611dec60a3c42557659870c386.tar.gz
xen-b1719daed04ad9611dec60a3c42557659870c386.tar.bz2
xen-b1719daed04ad9611dec60a3c42557659870c386.zip
Fix check if guest enabled nested paging.
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>
Diffstat (limited to 'xen/arch/x86/hvm/svm')
-rw-r--r--xen/arch/x86/hvm/svm/nestedsvm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/svm/nestedsvm.c b/xen/arch/x86/hvm/svm/nestedsvm.c
index 6ed32604cf..0b6ff88672 100644
--- a/xen/arch/x86/hvm/svm/nestedsvm.c
+++ b/xen/arch/x86/hvm/svm/nestedsvm.c
@@ -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;