]> xenbits.xensource.com Git - xen.git/commit
tools/libxl: correct vcpu affinity output with sparse physical cpu map
authorJuergen Gross <jgross@suse.com>
Fri, 31 Aug 2018 15:22:04 +0000 (17:22 +0200)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 16 May 2019 16:04:24 +0000 (17:04 +0100)
commitb55ff4c879ac202c5d53ad1985f86cc0865edb2f
tree5079940adfacdec0d9fad785a309b77a01753f8f
parent4b72470175a592fb5c0a5d10ed505de73778e10f
tools/libxl: correct vcpu affinity output with sparse physical cpu map

With not all physical cpus online (e.g. with smt=0) the output of hte
vcpu affinities is wrong, as the affinity bitmaps are capped after
nr_cpus bits, instead of using max_cpu_id.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit 2ec5339ec9218fbf1583fa85b74d1d2f15f1b3b8)
tools/xl/xl_vcpu.c