From: Stefano Stabellini Subject: Re: [PATCH] libxenlight: implement libxl_set_memory_target Date: Thu, 10 Dec 2009 13:37:31 +0000 Message-ID: References: <20091208200031.4903B5980EB@homiemail-mx11.g.dreamhost.com> <4B1EB743.3090102@lagarcavilla.com> <4B200CD5.30807@lagarcavilla.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <4B200CD5.30807@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: Vincent, "xen-devel@lists.xensource.com" , Hanquez , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 9 Dec 2009, Andres Lagar-Cavilla wrote: > Stefano Stabellini wrote: > > On Tue, 8 Dec 2009, Andres Lagar-Cavilla wrote: > > > >> Hi, > >> couple of comments: > >> - PV domains without videoram won't be able to use this > >> > > > > PV domains just have videoram = 0. > > > But you abort libxl_set_memory_target if the videoram node is not found. > Which won't be for PVs with no videoram... > + videoram_s = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, > "%s/memory/videoram", dompath)); > + if (!videoram_s) > + return -1; > The videoram node will be found, and the value will be 0.