xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nsvm: fix check if guest enabled nested paging
@ 2012-06-21 11:52 Christoph Egger
  2012-06-25  9:22 ` Tim Deegan
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Egger @ 2012-06-21 11:52 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]


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>

-- 
---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

[-- Attachment #2: xen_nh_npf.diff --]
[-- Type: text/plain, Size: 456 bytes --]

diff -r 195185eba60b xen/arch/x86/hvm/svm/nestedsvm.c
--- a/xen/arch/x86/hvm/svm/nestedsvm.c	Thu Jun 21 11:26:43 2012 +0200
+++ b/xen/arch/x86/hvm/svm/nestedsvm.c	Thu Jun 21 13:30:07 2012 +0200
@@ -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;

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] nsvm: fix check if guest enabled nested paging
  2012-06-21 11:52 [PATCH] nsvm: fix check if guest enabled nested paging Christoph Egger
@ 2012-06-25  9:22 ` Tim Deegan
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Deegan @ 2012-06-25  9:22 UTC (permalink / raw)
  To: Christoph Egger; +Cc: xen-devel@lists.xen.org

At 13:52 +0200 on 21 Jun (1340286760), Christoph Egger wrote:
> 
> 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>

Applied, thanks.

Tim.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-25  9:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21 11:52 [PATCH] nsvm: fix check if guest enabled nested paging Christoph Egger
2012-06-25  9:22 ` Tim Deegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).