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] semantics of GETDOMAININFO

To: Kip Macy <kip.macy@xxxxxxxxx>
Subject: Re: [Xen-devel] semantics of GETDOMAININFO
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sun, 8 May 2005 23:10:32 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 08 May 2005 22:12:39 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <b1fa291705050814397139e089@xxxxxxxxxxxxxx>
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: <b1fa291705050814397139e089@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 8 May 2005, at 22:39, Kip Macy wrote:

One of the things that I've always thought was weird, but didn't pay
too close attention to is the fact that GETDOMAININFO will return a
valid result even if we give it a domid that is no longer valid.
Looking at the code we get back the first valid domain after the domid
we pass in.

What is the reason for this design choice? When I request the
attributes of a process I don't get the attributes for the next pid up
with a pid field set to the process id of the process I actually got
the attributes for.

Easy enumeration when we don't know which domain id's are in use. There are other ways to allow for enumeration that might be neater.

 -- Keir


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

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