Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:Update
xen
5b8fae26-tools-libxl-correct-vcpu-affinity-outp...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 5b8fae26-tools-libxl-correct-vcpu-affinity-output-with-sparse-physical-cpu-map.patch of Package xen
Subject: tools/libxl: correct vcpu affinity output with sparse physical cpu map From: Juergen Gross jgross@suse.com Fri Aug 31 17:22:04 2018 +0200 Date: Wed Sep 5 11:21:26 2018 +0100: Git: 2ec5339ec9218fbf1583fa85b74d1d2f15f1b3b8 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> --- a/tools/xl/xl_vcpu.c +++ b/tools/xl/xl_vcpu.c @@ -143,13 +143,13 @@ static void vcpulist(int argc, char **ar } for (i = 0; i<nb_domain; i++) - print_domain_vcpuinfo(dominfo[i].domid, physinfo.nr_cpus); + print_domain_vcpuinfo(dominfo[i].domid, physinfo.max_cpu_id + 1); libxl_dominfo_list_free(dominfo, nb_domain); } else { for (; argc > 0; ++argv, --argc) { uint32_t domid = find_domain(*argv); - print_domain_vcpuinfo(domid, physinfo.nr_cpus); + print_domain_vcpuinfo(domid, physinfo.max_cpu_id + 1); } } vcpulist_out:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor