From: "Jan Beulich" Subject: Re: [PATCH v1][RFC] xen balloon driver numa support, libxl interface Date: Mon, 12 Aug 2013 15:00:00 +0100 Message-ID: <5209068002000078000EB3D8@nat28.tlf.novell.com> References: <1376313528-16530-1-git-send-email-lccycc123@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V8sfF-000493-Do for xen-devel@lists.xenproject.org; Mon, 12 Aug 2013 14:00:05 +0000 In-Reply-To: <1376313528-16530-1-git-send-email-lccycc123@gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yechen Li Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 12.08.13 at 15:18, Yechen Li wrote: > This small patch implements a numa support of memory operation for libxl > The command is: xl mem-set-numa [-e] vmid memorysize nodeid > To pass the parameters to balloon driver in kernel, I add a file of > xen-store > as /local/domain/(id)/memory/target_nid, hoping this is ok.... > > It's my first time submitting a patch, please point out the problems so > that I could work better in future, thanks very much! The main problem here is the lack of a consumer of this ... > @@ -3754,7 +3761,10 @@ retry_transaction: > abort_transaction = 1; > goto out; > } > - > + //lcc: > + LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "target_nid = %d focus= %d", node_specify, (int) nodeexact); > + libxl__xs_write(gc, t, libxl__sprintf(gc, "%s/memory/target_nid", > + dompath), "%"PRId32" %"PRId32, node_specify, (int)nodeexact); ... new Xenbus node. Without (so far) a true view into the host topology, even if you added a respective consumer to the balloon driver, how would that driver honor such a request? And even if it knew about host topology, unless the virtual topology in the subject domain sufficiently closely resembled the host's, it would - afaict - still have no way of obtaining suitable memory from the page allocator. Jan