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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] problem when checkpoint a running domain

To: ANNIE LI <annie.li@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] problem when checkpoint a running domain
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: 2009年9月16日 08:34:04 +0100
Cc:
Delivery-date: 2009年9月16日 00:36:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AB0272B.90601@xxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aco2Xu2mpnajAHngQcK78gX8L5379gAQSNFj
Thread-topic: [Xen-devel] problem when checkpoint a running domain
User-agent: Microsoft-Entourage/12.20.0.090605
On 16/09/2009 00:45, "ANNIE LI" <annie.li@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: vtsc in domain builder , Keir Fraser
Next by Date: RE: [Xen-devel] How to submit code changes for Xen? , Yi, Shunli
Previous by Thread: [Xen-devel] problem when checkpoint a running domain , ANNIE LI
Next by Thread: Re: [Xen-devel] problem when checkpoint a running domain , ANNIE LI
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /