]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vcpuinfo: add the code to fallback to try new API
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Fri, 24 Jun 2011 09:01:25 +0000 (18:01 +0900)
committerEric Blake <eblake@redhat.com>
Fri, 24 Jun 2011 23:00:22 +0000 (17:00 -0600)
commitffb552ebf023cfadc4ce290ad09936ff7e68ddc3
tree94b9fe95f27c474a70905796438dc32dd90995c3
parent291162abf4681b60dcdbaa777165e5c87bdc03af
vcpuinfo: add the code to fallback to try new API

The "virsh vcpuinfo" command results in failure when the target domain
is inactive on KVM. This patch improves this behavior by adding the
fallback to invoke virDomainGetVcpupinInfo API in case of
virDomainGetVcpus API returns error and the target domain is inactive.

Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
tools/virsh.c