From: ANNIE LI <annie.li@oracle.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: problem when checkpoint a running domain
Date: Wed, 16 Sep 2009 15:48:36 +0800 [thread overview]
Message-ID: <4AB09854.9050209@oracle.com> (raw)
In-Reply-To: <C6D6537C.14D19%keir.fraser@eu.citrix.com>
[-- Attachment #1.1: Type: text/plain, Size: 1527 bytes --]
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
>
[-- Attachment #1.2: Type: text/html, Size: 2322 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
prev parent reply other threads:[~2009-09-16 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 23:45 problem when checkpoint a running domain ANNIE LI
2009-09-16 7:34 ` Keir Fraser
2009-09-16 7:48 ` ANNIE LI [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AB09854.9050209@oracle.com \
--to=annie.li@oracle.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.