From: Vincent Hanquez Subject: Re: [PATCH 7/7] libxenlight resend: get state for one domain Date: Thu, 3 Dec 2009 16:02:50 +0000 Message-ID: <20091203160250.GA16684@gwig.uk.xensource.com> References: <4B16ABF9.9000408@lagarcavilla.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline In-Reply-To: <4B16ABF9.9000408@lagarcavilla.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andres Lagar-Cavilla Cc: "xen-devel@lists.xensource.com" , Vincent Hanquez , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, Dec 02, 2009 at 06:03:37PM +0000, Andres Lagar-Cavilla wrote: > Simple function to get the dominfo state of a single domain. > > Signed-off-by: Andres Lagar-Cavilla the function is buggy. you need to check that you got the right domain before returning the domaininfo. the hypercall returns the first domain from the domid given. i.e. if domid is not available, domid+n might be returned. -- Vincent