Re: libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

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

 



On Tue, 2015-02-24 at 12:41 +0000, Anthony PERARD wrote:
> Hi,
> 
> A recent OpenStack nova commit make use of virNodeGetCPUMap to get the list
> of online cpu of a host. But this API is not implemented for the libvirt
> xen driver.
> 
> The commit:
>   Add handling for offlined CPUs to the nova libvirt driver.
> https://review.openstack.org/gitweb?p=openstack/nova.git;a=commitdiff;h=0696a5cd5f0fdc08951a074961bb8ce0c3310086
> 
> Is there a need to use this under Xen? (Is it possible to have offline
> CPU?).

Yes, I think so. No idea how you use it though.

> What libxl API those provide this information, if it exist?
> 
> I found libxl_get_online_cpus() but that not enough. They want a
> bitmap.

I think that is all which currently exists, at least at the libxl level,
you may need to add a new interface.

It'd be worth looking into the various host numa interfaces -- perhaps
one of them indirectly exposes what you want?

Ian.

--
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]