From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: A question about "suspend-record frame number" Date: Sat, 21 Feb 2009 20:43:39 -0800 Message-ID: References: <49A02F06.3070801@pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49A02F06.3070801@pku.edu.cn> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: David Knight , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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" 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