From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] nestedsvm: allow l1 guest to use OSXSAVE Date: Mon, 4 Jul 2011 15:36:50 +0200 Message-ID: <4E11C1F2.3080708@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080500090407040706090403" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --------------080500090407040706090403 Content-Type: text/plain; charset="ISO-8859-15"; format=flowed Content-Transfer-Encoding: 7bit Allow l1 guest to use OSXSAVE. 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 --------------080500090407040706090403 Content-Type: text/plain; name="xen_nh_vcr4.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_nh_vcr4.diff" Content-Description: xen_nh_vcr4.diff diff -r 72f1eafaa2c8 xen/arch/x86/hvm/svm/svmdebug.c --- a/xen/arch/x86/hvm/svm/svmdebug.c Mon Jul 04 12:15:29 2011 +0200 +++ b/xen/arch/x86/hvm/svm/svmdebug.c Mon Jul 04 15:31:16 2011 +0200 @@ -124,8 +124,13 @@ svm_vmcb_isvalid(const char *from, struc PRINTF("CR3: MBZ bits are set (0x%"PRIx64")\n", vmcb->_cr3); } - if ((vmcb->_cr4 >> 11U) != 0) { - PRINTF("CR4: bits [63:11] are not zero (0x%"PRIx64")\n", + if ((vmcb->_cr4 >> 19U) != 0) { + PRINTF("CR4: bits [63:19] are not zero (0x%"PRIx64")\n", + vmcb->_cr4); + } + + if (((vmcb->_cr4 >> 11U) & 0x7fU) != 0) { + PRINTF("CR4: bits [17:11] are not zero (0x%"PRIx64")\n", vmcb->_cr4); } --------------080500090407040706090403 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.xensource.com http://lists.xensource.com/xen-devel --------------080500090407040706090403--