]> xenbits.xensource.com Git - libvirt.git/commit
virsh: fix vcpupin info
authorPavel Hrdina <phrdina@redhat.com>
Fri, 20 Feb 2015 07:21:05 +0000 (08:21 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 20 Feb 2015 15:17:19 +0000 (16:17 +0100)
commit81dd81e475c475b536eba08417a48a1e5210a265
treef99778a2ec7e4c5805848cc1f9fa89e6a82ec297
parentaf20423264a105b84e968afc0b23b920fca9e566
virsh: fix vcpupin info

The "virDomainGetInfo" will get for running domain only live info and for
offline domain only config info. There was no way how to get config info
for running domain. We will use "vshCPUCountCollect" instead to get the
correct cpu count that we need to pass to "virDomainGetVcpuPinInfo".

Also cleanup some unnecessary variables and checks that are done by
drivers.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1160559

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
tests/vcpupin
tools/virsh-domain.c