[libvirt] [RFC] New API to retrieve node CPU map

Eric Blake eblake at redhat.com
Thu Oct 11 04:06:43 UTC 2012


On 10/10/2012 10:02 PM, Osier Yang wrote:
>> Are you interested in writing patches to implement this new API, if
>> others agree with my alternate single-API signature?
> 
> Agreed. A single-API and allocating the cpumap inside libvirt without
> the need to known the maplen avoids the race.
> 
> But a flags support won't bite us, assuming someone just want to get
> the cpumap of the onlined CPUs, or offlined CPUs.

Indeed, shame on me for not remember a flags argument for any possible
future extensions.

> 
> So how about:
> 
> int
> virNodeGetCpuMap(virConnectPtr conn,
>                  unsigned char **cpumap,
>                  unsigned int flags);

Yes, that's better, even if flags must always be 0 for now.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121010/f848f40c/attachment-0001.sig>


More information about the libvir-list mailing list