From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: Re: [PATCH] libxc x86-64 domU support Date: Fri, 03 Jun 2005 00:01:10 -0500 Message-ID: <1117774870.9430.0.camel@thinkpad> References: <1117742050.10811.27.camel@thinkpad> <1117761001.10811.36.camel@thinkpad> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1117761001.10811.36.camel@thinkpad> 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 List-Id: xen-devel@lists.xenproject.org Another (last one) small change that is needed also. Signed-off-by: Jerone Young --- tools/libxc/xc_linux_build.c.orig 2005-06-02 15:08:54.000000000 -0500 +++ tools/libxc/xc_linux_build.c 2005-06-02 18:00:26.000000000 -0500 @@ -432,9 +432,16 @@ int xc_linux_build(int xc_handle, /* Use the default Xen-provided GDT. */ ctxt->gdt_ents = 0; +#if defined(__i386__) /* Ring 1 stack is the initial stack. */ ctxt->kernel_ss = FLAT_KERNEL_DS; ctxt->kernel_sp = vstartinfo_start + 2*PAGE_SIZE; +#endif + +#if defined(__x86_64__) + ctxt->kernel_ss = FLAT_KERNEL_SS; + ctxt->kernel_sp = vstartinfo_start + 2*PAGE_SIZE; +#endif /* No debugging. */ memset(ctxt->debugreg, 0, sizeof(ctxt->debugreg)); On Thu, 2005-06-02 at 20:10 -0500, Jerone Young wrote: > This patch is missing a small change that is needed. > Signed-off-by: Jerone Young > > --- tools/libxc/xc_linux_build.c.orig 2005-06-02 15:08:54.000000000 > -0500 > +++ tools/libxc/xc_linux_build.c 2005-06-02 15:09:44.000000000 > -0500 > @@ -409,7 +409,11 @@ int xc_linux_build(int xc_handle, > ctxt->user_regs.es = FLAT_KERNEL_DS; > ctxt->user_regs.fs = FLAT_KERNEL_DS; > ctxt->user_regs.gs = FLAT_KERNEL_DS; > +#if defined(__x86_64__) > ctxt->user_regs.ss = FLAT_KERNEL_SS; > +#else > + ctxt->user_regs.ss = FLAT_KERNEL_DS; > +#endif > ctxt->user_regs.cs = FLAT_KERNEL_CS; > ctxt->user_regs.eip = vkern_entry; > ctxt->user_regs.esp = vstartinfo_start + 2*PAGE_SIZE; > > > On Thu, 2005-06-02 at 14:54 -0500, Jerone Young wrote: > > Here are patches need for domU startup for x86-64. While the code seems to work. > > There are problems within Xen that are preventing a full domain launch at this moment. > > > > Signed-off-by: Jerone Young > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > -- Jerone Young IBM Linux Technology Center jyoung5@us.ibm.com 512-838-1157 (T/L: 678-1157)