[libvirt] [PATCH] vcpu: teach getVcpusFlags about current

Laine Stump laine at laine.org
Mon Jul 25 21:33:08 UTC 2011


On 07/15/2011 07:38 PM, Eric Blake wrote:
> Now that virDomainSetVcpusFlags knows about VIR_DOMAIN_AFFECT_CURRENT,
> so should virDomainGetVcpusFlags.
>
> Unfortunately, the virsh counterpart 'virsh vcpucount' has already
> commandeered --current for a different meaning, so virsh does not
> have a way to expose this new calling capability unless we either
> break backward compatibility or consistency with other virsh commands
> that take --live and --config.
>
> * src/libvirt.c (virDomainGetVcpusFlags): Allow
> VIR_DOMAIN_AFFECT_CURRENT.
> * src/libxl/libxl_driver.c (libxlDomainGetVcpusFlags): Likewise.
> * src/qemu/qemu_driver.c (qemudDomainGetVcpusFlags): Likewise.
> * src/test/test_driver.c (testDomainGetVcpusFlags): Likewise.
> * src/xen/xen_driver.c (xenUnifiedDomainGetVcpusFlags): Likewise.
> ---
>
> In response to:
> https://www.redhat.com/archives/libvir-list/2011-July/msg00967.html
>

ACK (including the docs you later squashed in)




More information about the libvir-list mailing list