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: Dan Smith <danms@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, David Hopwood <david.nospam.hopwood@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Prevent xend from starting duplicate domains
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 13 Sep 2005 23:32:35 -0500
Delivery-date: Wed, 14 Sep 2005 04:30:43 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <878xy0sebq.fsf@xxxxxxxxxx>
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> <878xy0sebq.fsf@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)
Dan Smith wrote:

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.
The hypervisor has no concept of domain names. That's entirely a Xend construct. The same applies to UUIDs.

Even if there are two domains with the same name, they have different domain IDs which is okay from the hypervisor's perspective.

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.

Regards,

Anthony Liguori

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