From: Wei Liu Subject: Re: [PATCH v2 for Xen 4.6 3/6] tools/libxl: return socket id from libxl_psr_cat_get_l3_info Date: Tue, 29 Sep 2015 10:22:44 +0100 Message-ID: <20150929092244.GU13821@zion.uk.xensource.com> References: <1443512995-11853-1-git-send-email-chao.p.peng@linux.intel.com> <1443512995-11853-4-git-send-email-chao.p.peng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1443512995-11853-4-git-send-email-chao.p.peng@linux.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chao Peng Cc: wei.liu2@citrix.com, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Sep 29, 2015 at 03:49:52PM +0800, Chao Peng wrote: > The entries returned from libxl_psr_cat_get_l3_info are assumed > to be socket-continuous. But this is not true in the hotplug case. > > This patch gets the socket bitmap for all the sockets on the system > first and stores the socket id in the structure libxl_psr_cat_info in > libxl_psr_cat_get_l3_info. The xl or similar consumers then can display > socket information correctly. > > Signed-off-by: Chao Peng Acked-by: Wei Liu