From mboxrd@z Thu Jan 1 00:00:00 1970 From: ANNIE LI Subject: Re: problem when checkpoint a running domain Date: Wed, 16 Sep 2009 15:48:36 +0800 Message-ID: <4AB09854.9050209@oracle.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2076420761==" 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: Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============2076420761== Content-Type: multipart/alternative; boundary="------------090403050400010400040708" This is a multi-part message in MIME format. --------------090403050400010400040708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thank you very much. Will do that as you suggested. Thanks Annie. Keir Fraser wrote: > On 16/09/2009 00:45, "ANNIE LI" wrote: > > >> When using "xm save -c" to checkpoint a running domain, the hypercall >> SHUTDOWN_suspend should return 1, right? >> > > Yes. The bit of code of interest here is in > tools/python/xen/xend/XendDomainInfo.py -- search for 'fast = > self.info.get_notes().get('SUSPEND_CANCEL') and 1 or 0', and the following > code up to 'xc.domain_resume(self.domid, fast)'. For suspend cancellation to > work right you should be seeing fast=1. And that gets passed to > xc_domain_resume() in tools/libxc/xc_resume.c. So you should be able to > follow that code through and debug what's happening. > > >> However, it return 0 in my winpv driver. And i did not pass start_info >> as a parameter to the hypercall, is it necessary to write the magic word >> in start_info and then pass it as a parameter to suspend hypercall to >> support "xm save -c"? >> > > No, the argument to HYPERVISOR_suspend() is unused for HVM guests -- you can > just pass zero. > > >> There is also a suspend-cancel key in xenstore, and it's value is 1. >> What is it for? Need i do some process with this xenstore key? >> > > No. It indicates that the xend assumes all PV-on-HVM drivers support suspend > cancellation. > > -- Keir > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > --------------090403050400010400040708 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thank you very much.
Will do that as you suggested.

Thanks
Annie.

Keir Fraser wrote:
On 16/09/2009 00:45, "ANNIE LI" <annie.li@oracle.com> wrote:

  
When using "xm save -c" to checkpoint a running domain, the hypercall
SHUTDOWN_suspend should return 1, right?
    

Yes. The bit of code of interest here is in
tools/python/xen/xend/XendDomainInfo.py -- search for 'fast =
self.info.get_notes().get('SUSPEND_CANCEL') and 1 or 0', and the following
code up to 'xc.domain_resume(self.domid, fast)'. For suspend cancellation to
work right you should be seeing fast=1. And that gets passed to
xc_domain_resume() in tools/libxc/xc_resume.c. So you should be able to
follow that code through and debug what's happening.

  
However, it return 0 in my winpv driver. And i did not pass start_info
as a parameter to the hypercall, is it necessary to write the magic word
in start_info and then pass it as a parameter to suspend hypercall to
support "xm save -c"?
    

No, the argument to HYPERVISOR_suspend() is unused for HVM guests -- you can
just pass zero.

  
There is also a suspend-cancel key in xenstore, and it's value is 1.
What is it for? Need i do some process with this xenstore key?
    

No. It indicates that the xend assumes all PV-on-HVM drivers support suspend
cancellation.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
  
--------------090403050400010400040708-- --===============2076420761== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2076420761==--