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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] new_ctxt_format in xc_linux_restore?

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] new_ctxt_format in xc_linux_restore?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 21 May 2007 07:27:13 +0100
Cc: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Delivery-date: Sun, 20 May 2007 23:23:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D470B4E54465E3469E2ABBC5AFAC390F013B1E33@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcebahFvG1cvgK/2Ssi3WsEHIZXg2QABwAKx
Thread-topic: [Xen-devel] new_ctxt_format in xc_linux_restore?
User-agent: Microsoft-Entourage/11.3.3.061214
On 21/5/07 06:37, "Tian, Kevin" <kevin.tian@xxxxxxxxx> wrote:

> Guess following lines as typo since new context format is used to
> support fast suspend with online vcpu context saved in image file:
> 
> if ( !new_ctxt_format ) <--- Opposite should be used here???
>     ctxt.flags |= VGCF_online;
> 
> Or do I misunderstand save/restore logic? Also interested why
> smp restore works if a true typo above. :-)

It's the right way round. Old images may not include the VGCF_online flag
(since it is a new flag). Since old images only ever include one saved VCPU,
and that VCPU is never offline, we just poke that flag in.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>