tools/cpupools: Give a name to unnamed cpupools
authorLuca Fancellu <luca.fancellu@arm.com>
Fri, 6 May 2022 12:00:06 +0000 (13:00 +0100)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Mon, 9 May 2022 20:32:05 +0000 (13:32 -0700)
commit5b9647f771ce0a80c4de4eeaa55f6cf07a5d1f64
tree7b621c7a2dd6e05d6c752f75212bb80062fc7296
parent95604873ccf56eb81e96ed0dc8b4dec3278f40ca
tools/cpupools: Give a name to unnamed cpupools

With the introduction of boot time cpupools, Xen can create many
different cpupools at boot time other than cpupool with id 0.

Since these newly created cpupools can't have an
entry in Xenstore, create the entry using xen-init-dom0
helper with the usual convention: Pool-<cpupool id>.

Given the change, remove the check for poolid == 0 from
libxl_cpupoolid_to_name(...).

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/helpers/xen-init-dom0.c
tools/libs/light/libxl_utils.c