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] Testing for domain states (before starting, before resta

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] Testing for domain states (before starting, before restarting, and after "save")
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Fri, 20 Nov 2009 09:33:54 +0000
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 20 Nov 2009 01:34:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8658f197-faef-40b5-9f7f-e3f0b65e1f45@default>
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: <8658f197-faef-40b5-9f7f-e3f0b65e1f45@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
Hi,

At 00:32 +0000 on 20 Nov (1258677171), Dan Magenheimer wrote:
> Is there a way (in the hypervisor) to test a domain to see if is
> created but has not yet executed its first instruction (or has been
> restored/live-migrated but has not yet executed its first instruction
> post-restore)? 

I don't think that's explicitly available, but if it's paused and all
its vcpus' scheduler stats are at zero, that's probably good enough for
the kind of sanity check you're talking about.

> Or to see if it has been stopped in anticipation of a
> save (or live migrate) and will not execute more instructions
> unless/until it is restored (or revived on the live-migrate target
> machine)?

That's easier: it's shut down with shutdown code suspend.  That doesn't
mean it will never run again in this domain, because of the Remus
fast-resume path, but it does mean no more instructions executed before
some kind of resume.

Cheers,

Tim.

> I'm writing routines for tsc_mode that assumes each of those conditions and, 
> rather than just comment about it, thought it would be nice to fail if the 
> assumption is incorrect.  If not (or if it is too complicated), I'll just use 
> comments.
> 
> Thanks,
> Dan
> 

Content-Description: ATT00001.txt
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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

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