Re: [PATCH 4/5] vcpuinfo: add the code to fallback to try new API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/24/2011 03:01 AM, Taku Izumi wrote:
> 
> 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.
> 
> 
> Signd-off-by: Taku Izumi <izumi.taku@xxxxxxxxxxxxxx>

s/Signd/Signed/

[unlike the kernel folks, we aren't sticklers about S-O-B lines on this
list, but if you use it, you might as well use it correctly ;)]

ACK as-is!

> +        if (info.state == VIR_DOMAIN_SHUTOFF &&
> +            (ncpus = virDomainGetVcpupinInfo(dom, info.nrVirtCpu,

Well, there's the s/Vcpupin/VcpuPin/ change coming up later, but it has
wider-reaching effects, so I'll leave it separate.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]