From: "Zhai, Edwin" Subject: Re: switch out of 32e mode issue Date: Tue, 3 Jul 2007 17:32:12 +0800 Message-ID: <20070703093211.GE20797@edwin-srv.sh.intel.com> References: <20070703065148.GD20797@edwin-srv.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Ian Pratt , xen-devel@lists.xensource.com, "Zhai, Edwin" List-Id: xen-devel@lists.xenproject.org On Tue, Jul 03, 2007 at 09:57:21AM +0100, Keir Fraser wrote: > On 3/7/07 07:51, "Zhai, Edwin" wrote: > > > I have read the your changeset 13830 > > "[XEN] kexec: add compatability shim for kexec in 32on64 mode", which seems to > > be used for kexec a 32b kernel on 32e xen. I worked on a pretty old changeset W/O relocation. vir=>phys just use PAGE_OFFSET > > You're aware it got broken when 64-bit Xen became relocatable (in physical > memory map), and was only fixed by changesets 15377 and 15379? > > > I borrow some of the code from xen/arch/x86/x86_64/compat_kexec.S for similar > > purpose(switch out of 32e mode in xen) by similar way: > > Why would you want to do that, except for kexec? When boot xen with TXT, shutdown need trap back to sboot for some security operations. > > -- Keir > -- best rgds, edwin