[Libvir] Here the patch for virtual CPU functions.

Philippe Berthault Philippe.Berthault at Bull.net
Thu Aug 3 13:32:46 UTC 2006

The patch (vcpus.diff) is joined with this mail.

To apply the patch, untar the libvirt-0.1.3.tar.gz archive (if not 
already done).
Then in libvirt-0.1.3 directory, do
    ./configure --prefix=/usr
if not already done, and after this:
    patch -p1 < vcpus.diff
    make install

 From the initial patch of Michel Ponceau (not delivered), I've just 
modify the virDomainGetVcpus function and added some useful macro for 
bit manipulation in cpu bit maps.

TODO: These vcpus functions permits to dynamically change the vcpu/cpu 
relation after the domain has been started but nothing has been done 
regarding static cpus attribution in the XML configuration file of a domain.

Philippe Berthault.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vcpus.diff
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20060803/1be2fadf/attachment-0001.ksh>

More information about the libvir-list mailing list