From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] nsvm: fix check if guest enabled nested paging Date: Thu, 21 Jun 2012 13:52:40 +0200 Message-ID: <4FE30B08.2010407@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010003000704010203020302" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --------------010003000704010203020302 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit Fix check if guest enabled nested paging. Fixes crashes with Windows guests when shadow-on-nested is used. Signed-off-by: Christoph Egger -- ---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 --------------010003000704010203020302 Content-Type: text/plain; charset="us-ascii"; name="xen_nh_npf.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_nh_npf.diff" Content-Description: xen_nh_npf.diff 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; --------------010003000704010203020302 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------010003000704010203020302--