From: Christoph Egger Subject: [PATCH 05/18] Nested Virtualization: paged real mode Date: Thu, 15 Apr 2010 14:28:03 +0200 Message-ID: <201004151428.03731.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_TZwxL1aLLWKFysV" 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 --Boundary-00=_TZwxL1aLLWKFysV Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_TZwxL1aLLWKFysV Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_nh05_pagedrealmode.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_nh05_pagedrealmode.diff" # HG changeset patch # User cegger # Date 1271330295 -7200 Allow nested guest to switch into paged realmode. This is needed to make hvmloader work when we do nested virtualization with xen in xen. diff -r 891bd80cbed6 -r 96efed7dedaf xen/arch/x86/hvm/hvm.c --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1073,9 +1073,6 @@ int hvm_set_cr0(unsigned long value) /* ET is reserved and should be always be 1. */ value |= X86_CR0_ET; - if ( (value & (X86_CR0_PE | X86_CR0_PG)) == X86_CR0_PG ) - goto gpf; - if ( (value & X86_CR0_PG) && !(old_value & X86_CR0_PG) ) { if ( v->arch.hvm_vcpu.guest_efer & EFER_LME ) --Boundary-00=_TZwxL1aLLWKFysV 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 --Boundary-00=_TZwxL1aLLWKFysV--