From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [PATCH 6 of 6] PV on HVM suspend\resume Date: Fri, 23 Apr 2010 16:08:56 -0700 Message-ID: <4BD22888.1060305@goop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: 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: Stefano Stabellini Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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. J