mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
virsh: Fix vcpupin command output wrong vcpu pinning info
Commit 3072ded3 changed the waya to format the vcpu pinning info and forget to get cpumap for each vcpu during the loop, that cause vcpupin command will display vcpu 0 info for other vcpus. Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
parent
4d95d35637
commit
ae8484586c
@ -6954,7 +6954,8 @@ virshVcpuPinQuery(vshControl *ctl,
|
|||||||
if (got_vcpu && i != vcpu)
|
if (got_vcpu && i != vcpu)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!(pinInfo = virBitmapDataFormat(cpumap, cpumaplen)))
|
if (!(pinInfo = virBitmapDataFormat(VIR_GET_CPUMAP(cpumap, cpumaplen, i),
|
||||||
|
cpumaplen)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (virAsprintf(&vcpuStr, "%zu", i) < 0)
|
if (virAsprintf(&vcpuStr, "%zu", i) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user