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] [PATCH] xl: save domain config (userdata) under correct

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xl: save domain config (userdata) under correct domid/uuid
From: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Date: Thu, 13 Jan 2011 13:28:18 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 Jan 2011 05:29:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19758.17728.154557.537487@xxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <19758.17728.154557.537487@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2011-01-13 at 00:20 +0000, Ian Jackson wrote:
> The automatic tests write:
> > Regressions :-(
> > 
> > Tests which did not succeed and are blocking:
> >  test-amd64-amd64-xl          11 guest-localmigrate         fail REGR. vs. 
> > 4586
> [etc]
> 
> I think this is fixed by the patch below, which I have just applied.
> 
> Ian.
> 
> # HG changeset patch
> # User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
> # Date 1294877915 0
> # Node ID d839631b604807fe0f978f9eacc1c73f6a9bf0bd
> # Parent  20b0f709153e9e36c937caae8ec0b816c8ad1cfd
> xl: save domain config (userdata) under correct domid/uuid
> 
> Recent changes caused the domain config file to be saved under dom0's
> filename in /var/lib/xen.  This was due to the config file being saved
> before the domain was created and thus before the domid and uuid were
> known.
> 
> Fix this by moving the saving code to after creation.
> 
> Also, change the "default" initialisation of domid in
> xl_cmdimpl.c:create_domain to be domid=-1.  That provides a more
> obviously wrong value than 0 (which refers to dom0) so that other bugs
> of this kind would be more likely to show up.
> 
> Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> Tested-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

Nice catch, thanks. It's still a beast of a function.

Gianni


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

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