From: Wei Liu Subject: Re: [PATCH for Xen 4.6 2/5] tools/libxl: fix socket display error for CMT Date: Mon, 28 Sep 2015 15:13:39 +0100 Message-ID: <20150928141339.GC13821@zion.uk.xensource.com> References: <1443441293-4287-1-git-send-email-chao.p.peng@linux.intel.com> <1443441293-4287-3-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: <1443441293-4287-3-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, stefano.stabellini@eu.citrix.com, Ian.Jackson@eu.citrix.com, Ian.Campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Sep 28, 2015 at 07:54:50PM +0800, Chao Peng wrote: > When displaying the CMT information for all the sockets, we assume socket > number is continuous. This is not true in the hotplug case. For instance, > when the 3rd socket is plugged out on a 4-socket system, the available > sockets numbers are 1,2,4 but current we will display the CMT > information for socket 1,2,3. > > The fix is getting the socket bitmap for all the sockets on the system > first and then displaying CMT information for_each_set_bit in that bitmap. > > Signed-off-by: Chao Peng Acked-by: Wei Liu