All of lore.kernel.org
 help / color / mirror / Atom feed
* A question about "suspend-record frame number"
@ 2009-02-21 16:42 David Knight
  2009-02-22  4:43 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: David Knight @ 2009-02-21 16:42 UTC (permalink / raw)
  To: xen-devel

Dear friends:

in xc_domain_save.c, there is a suspend-record frame number which is
stored in the first vcpu's edx register. What the major use of this
"suspend-record frame number". Why this frame number is store there?

I want to replace the suspend_and_state with xc_domain_shutdown because
the former one is much slower. But after I replaced the funcion, that
frame number was lost. What if I ignore the error and omit the
corresponding code in xc_domain_restore.c?? Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A question about "suspend-record frame number"
  2009-02-21 16:42 A question about "suspend-record frame number" David Knight
@ 2009-02-22  4:43 ` Keir Fraser
  0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2009-02-22  4:43 UTC (permalink / raw)
  To: David Knight, xen-devel@lists.xensource.com

The suspend-record provides information from the suspended guest to
xc_domain_save/restore in the toolstack, and then back to the restored
guest. You can't just do xc_domain_shutdown() from the tools because a PV
guest has to prepare itself for save/restore, and it wouldn't get the chance
to do that in that case. The suspend_and_state() got sped up a lot for
guests which support suspend notification via an event channel (rather than
going via xenstore, which is 100s of milliseconds slower typically).

 -- Keir


On 21/02/2009 08:42, "David Knight" <dongwei.net@pku.edu.cn> wrote:

> Dear friends:
> 
> in xc_domain_save.c, there is a suspend-record frame number which is
> stored in the first vcpu's edx register. What the major use of this
> "suspend-record frame number". Why this frame number is store there?
> 
> I want to replace the suspend_and_state with xc_domain_shutdown because
> the former one is much slower. But after I replaced the funcion, that
> frame number was lost. What if I ignore the error and omit the
> corresponding code in xc_domain_restore.c?? Thanks.
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-22  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-21 16:42 A question about "suspend-record frame number" David Knight
2009-02-22  4:43 ` Keir Fraser

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.