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] Skip vcpu_hotplug for VCPU 0 in smp_resume

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Skip vcpu_hotplug for VCPU 0 in smp_resume
From: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
Date: Thu, 02 Apr 2009 10:13:41 +0100
Cc: "andy@xxxxxxxxx" <andy@xxxxxxxxx>, Brendan Cully <brendan@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 02 Apr 2009 02:14:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5FA359E.64C3%keir.fraser@xxxxxxxxxxxxx>
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: <C5FA359E.64C3%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2009-04-02 at 09:27 +0100, Keir Fraser wrote:
> On 02/04/2009 09:13, "Kieran Mansley" <kmansley@xxxxxxxxxxxxxx> wrote:
> 
> > On Wed, 2009-04-01 at 11:39 -0700, Brendan Cully wrote:
> >> I'm afraid my memory of the kernel suspend mechanics has gotten a bit
> >> rusty over the last few months, so I may be off-base here. But I
> >> thought that xs_suspend masked watches until xs_reusume or
> >> xs_suspend_cancel? If that is the case, isn't that on its own enough
> >> to protect netfront?
> > 
> > If that's the case, it should be enough, yes.
> > 
> > Do watches that would have fired during that time fire at the end of
> > masked period?  If not, we'd still have to access xenstore on suspend
> > cancel to check if we've missed a change.
> 
> I don't think watches get lost across suspend-cancel, just delayed.

OK, I'll try and produce a patch based on the assumptions that (i)
watches won't fire between suspend and either resume or suspend-cancel;
(ii) any that would have fired are triggered after a suspend-cancel; and
(iii) the watch must be refreshed on a resume (with no guarantees about
lost watches).

Kieran


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