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] Prevent xend from starting duplicate domains

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] Prevent xend from starting duplicate domains
From: Dan Smith <danms@xxxxxxxxxx>
Date: Tue, 13 Sep 2005 17:06:17 -0700
Delivery-date: Wed, 14 Sep 2005 00:05:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43275ED7.2090709@xxxxxxxxxxxxxxxx> (David Hopwood's message of "Wed, 14 Sep 2005 00:20:55 +0100")
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>
References: <87d5ncsksl.fsf@xxxxxxxxxx> <43275ED7.2090709@xxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)
DH> Surely there's a race condition here? The hypervisor op that
DH> creates a domain has to fail if it would result in two domains
DH> with the same name; 

With the same domid?  Yes.  Unless I'm completely missing something,
the hypervisor knows nothing of the *names* of the domains.

Am I wrong?

DH> this can't be reliably enforced by a separate check in the Python
DH> tools.

Going on the assumption that the names are known only to the tools, I
think the tools are the best place to perform the check.

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx


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