From: Dario Faggioli Subject: [PATCH 0/2] libxl: fix NUMA placement preventing domain config to be re-used Date: Wed, 01 Jul 2015 16:02:58 +0200 Message-ID: <20150701135059.15951.39938.stgit@Solace.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZAIbP-0006yT-Ve for xen-devel@lists.xenproject.org; Wed, 01 Jul 2015 14:03:04 +0000 Received: by widjy10 with SMTP id jy10so58714156wid.1 for ; Wed, 01 Jul 2015 07:03:02 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Euan Harris , Ian Campbell , Wei Liu , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Hi, This series fixes the issue reported here by Ian, about NUMA placement related domain config fields preventing the config to be reused: http://lists.xenproject.org/archives/html/xen-devel/2015-06/msg04454.html The way it does it is by setting the b_info->numa_placement config switch to false, after NUMA placement has actually happened. This way, the next time we re-use the config, we won't run the placement again, we just will use the result obtained from the original execution of it. This is, both IMO and for Ian Jackson (as per an IRC conversation we had yesterday), the best behaviour, as it yields consistent results across config re-uses. BTW, with patch 2 applied, I've been able to run the test in here, and it worked for me: http://xenbits.xen.org/gitweb/?p=people/iwj/ring3-xl-test.git;a=shortlog;h=refs/heads/t.numa-bug While I was there, though, I took the chance to put patch 1 together as well. What it does it turning a couple of error conditions (still related to the NUMA placement domain config switch) into warnings, as error was too much. This has been discussed a while back, and I distinctly remember it mentioned in a conversation on xen-devel, but I can't find it now. In any case, I think it's the right thing to do. Regards, Dario --- Dario Faggioli (2): libxl: turn NUMA placement misconfigs into warnings libxl: unset info->numa_placement upon successful placement tools/libxl/libxl_dom.c | 85 +++++++++++++++++++++++++---------------------- 1 file changed, 46 insertions(+), 39 deletions(-) -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)