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-devel

Re: [Xen-devel] [PATCH 6 of 6] PV on HVM suspend\resume

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 6 of 6] PV on HVM suspend\resume
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Mon, 26 Apr 2010 00:25:00 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Sun, 25 Apr 2010 16:24:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BD22888.1060305@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <alpine.DEB.2.00.1004221610060.11380@kaball-desktop> <4BD22888.1060305@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Sat, 24 Apr 2010, Jeremy Fitzhardinge wrote:
> On 04/22/2010 08:17 AM, Stefano Stabellini wrote:
> > +static void do_hvm_suspend(void)
> > +{
> > +   int err;
> > +   int cancelled = 1;
> > +
> > +   shutting_down = SHUTDOWN_SUSPEND;
> > +
> > +   err = stop_machine_create();
> > +   if (err) {
> > +           printk(KERN_ERR "xen suspend: failed to setup stop_machine 
> > %d\n", err);
> > +           goto out;
> > +   }
> > +
> > +#ifdef CONFIG_PREEMPT
> > +   /* If the kernel is preemptible, we need to freeze all the processes
> > +      to prevent them from being in the middle of a pagetable update
> > +      during suspend. */
> > +   err = freeze_processes();
> > +   if (err) {
> > +           printk(KERN_ERR "xen suspend: freeze failed %d\n", err);
> > +           goto out_destroy_sm;
> >   
> 
> This won't compile with CONFIG_PREEMPT enabled, because out_destroy_sm
> is missing below.
> 
 
Now it is fixed, however I tried suspend/resume with CONFIG_PREEMPT
enabled and the kernel seems to hang at resume time; I wonder if it
works for pv guests since the suspend/resume code is similiar...


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