From: Keir Fraser Subject: Re: semantics of GETDOMAININFO Date: Sun, 8 May 2005 23:10:32 +0100 Message-ID: <59b0cc0feef1cf941df30e24b38dc143@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kip Macy Cc: xen-devel List-Id: xen-devel@lists.xenproject.org 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