WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] Re: PATCH: save & restore

To: Alex Williamson <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel] Re: PATCH: save & restore
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Fri, 7 Jul 2006 10:45:05 +0200
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 07 Jul 2006 01:40:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1152223428.5541.44.camel@lappy>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200607061530.40912.Tristan.Gingold@xxxxxxxx> <1152223428.5541.44.camel@lappy>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Le Vendredi 07 Juillet 2006 00:03, Alex Williamson a écrit :
> Hi Tristan,
>
>    Generally looks very good, and it works on my system too!  How much
> more is required for SMP support?  I tried saving a 2-way domU.
> Unfortunately it restored with only a single CPU and wasn't very happy
> about it.
I never tried with SMP.  This will be the next step.

>  A couple trivial comments below.  Thanks,
>
>       Alex
>
> On Thu, 2006-07-06 at 15:30 +0200, Tristan Gingold wrote:
> > --- a/linux-2.6-xen-sparse/drivers/xen/core/reboot.c    Thu Jul 06
> > 10:05:14 2006 +0200
> > +++ b/linux-2.6-xen-sparse/drivers/xen/core/reboot.c    Thu Jul 06
> > 13:49:36 2006 +0200
> > @@ -39,6 +39,7 @@ extern void ctrl_alt_del(void);
> >   */
> >  #define SHUTDOWN_HALT      4
> >
> > +#ifdef CONFIG_X86
>
> I looks like
>
> #if defined(__i386__) || defined(__x86_64__)
Yes.

> would be more consistent with the rest of the #ifdefs in the file, or is
> there some other reason for choosing CONFIG_X86.  Note that the #ifdef
> around pm_power_off should be addressed if that whole function is
> already in an #ifdef.
Ok.

> > +#ifdef CONFIG_X86
> >         mm_pin_all();
> >
> >         __cli();
> > +#endif
> > +#ifdef __ia64__
> > +       local_irq_disable();
> > +#endif
>
> Would #else or #elif defined(__ia64__) be more appropriate?
If you prefer.

> > --- a/tools/libxc/Makefile      Thu Jul 06 10:05:14 2006 +0200
> > +++ b/tools/libxc/Makefile      Thu Jul 06 13:49:36 2006 +0200
> > @@ -31,6 +31,8 @@ GUEST_SRCS-y += xc_load_elf.c
> >  GUEST_SRCS-y += xc_load_elf.c
> >  GUEST_SRCS-y += xg_private.c
> >  GUEST_SRCS-$(CONFIG_IA64) += xc_ia64_stubs.c
> > +GUEST_SRCS-$(CONFIG_IA64) += ia64/xc_ia64_linux_save.c
> > +GUEST_SRCS-$(CONFIG_IA64) += ia64/xc_ia64_linux_restore.c
> >  GUEST_SRCS-$(CONFIG_MIGRATE) += xc_linux_restore.c xc_linux_save.c
> >  GUEST_SRCS-$(CONFIG_HVM) += xc_hvm_build.c
>
> Should we move xc_ia64_stubs.c to that directory too?
I have a pending patch which address this issue.

>  Maybe a proper Makefile in the ia64 directory?
I will ask on xen-devel.

Tristan.

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

<Prev in Thread] Current Thread [Next in Thread>