diff options
author | Christoph Egger <Christoph.Egger@amd.com> | 2012-06-25 10:18:23 +0100 |
---|---|---|
committer | Christoph Egger <Christoph.Egger@amd.com> | 2012-06-25 10:18:23 +0100 |
commit | b1719daed04ad9611dec60a3c42557659870c386 (patch) | |
tree | c3a9cdeafacddf1a7ee8b880e29f61332aa95c86 /xen/arch/x86/hvm/svm | |
parent | 1b25d80157c0cfff9b142b74e0858cc745e95039 (diff) | |
download | xen-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.c | 3 |
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; |