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] add XenStore viewer

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>, Daniel Stodden <stodden@xxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Subject: Re: [Xen-devel] [Patch] add XenStore viewer
From: tgh <wwwwww4187@xxxxxxxxxxx>
Date: Fri, 14 Dec 2007 14:46:38 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 13 Dec 2007 22:47:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200710041335.30568.mark.williamson@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200710040326.49642.mark.williamson@xxxxxxxxxxxx> <200710041335.30568.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
hi
I read the code of "save"and "restore"virtual machine in the PVmode, and
there are many interactions with the xenstore, it seems that when
restoring virtual machine, adding the entry in xenstore will invoke some
watch function to add and initiate some useful devices in the dom0 for
backend, is it ? and does it even inform the guestos to add frontend ?
I am not familar with python, and confused about the whole workflow for
the "save" and "restore" of virtual machine, is the resume function
below the major function for "restore" or not? could someone give me an
explanation about the workflow about the "save" and "restore"


Thanks in advance

______________________________________
def resume(self):
"""Resumes a domain that has come back from suspension."""
state = self._stateGet()
if state in (DOM_STATE_SUSPENDED, DOM_STATE_HALTED):
try:
self._constructDomain()
self._storeVmDetails()
self._createDevices()
self._createChannels()
self._storeDomDetails()
self._endRestore()

________________________________











Mark Williamson 写道:
> Now with patched attached - bonus!  Thanks to those who pointed out my 
> error ;-)
>
> Cheers,
> Mark
>
> On Thursday 04 October 2007, Mark Williamson wrote:
>   
>> Hi,
>>
>> Rejigged my XenStore viewer to apply to unstable, use the python distutils
>> properly, etc.
>>
>> What is it?  A small PyQT application that displays the contents of
>> XenStore graphically as a collapsible tree, making it easy to inspect the
>> contents of XenStore and manipulate its values.  I've wished for something
>> like this many times when trying to debug xenbus interactions.
>>
>> It's small chunk of code and adds useful but non-critical functionality, so
>> I'd propose it be merged unless anyone has objections (nobody squealed last
>> time, so I'm guessing not).
>>
>> I'm open to suggestions regarding other features that'd be useful but it
>> does what I want for the moment, I think.
>>
>> Cheers,
>> Mark
>>     
>
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>   


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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] [Patch] add XenStore viewer, tgh <=