[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] libxc x86-64 domU support


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Jerone Young <jyoung5@xxxxxxxxxx>
  • Date: Fri, 03 Jun 2005 00:01:10 -0500
  • Delivery-date: Fri, 03 Jun 2005 05:02:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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 <jyoung5@xxxxxxxxxx>
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> 
-- 
Jerone Young
IBM Linux Technology Center
jyoung5@xxxxxxxxxx
512-838-1157 (T/L: 678-1157)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.