<br><font size=2 face="Courier New">I imagined that each Libvirt user could choose its own MAX number of CPU. If it is not possible, at least can we reserve the extended cpumap for future development (TODO, same as NULL domain pointer) ?</font>
<br>
<p><font size=1 color=#800080 face="sans-serif">Veuillez répondre à veillard@redhat.com</font>
<p><font size=1 color=#800080 face="sans-serif">Pour :        </font><font size=1 face="sans-serif">michel.ponceau@bull.net</font>
<br><font size=1 color=#800080 face="sans-serif">cc :        </font><font size=1 face="sans-serif">libvir-list@redhat.com</font><font size=1 color=#800080 face="sans-serif"> </font>
<br><font size=1 color=#800080 face="sans-serif">Objet :        </font><font size=1 face="Arial">Re: Proposal : add 3 functions to Libvirt API, for virtual CPUs</font>
<br>
<br><font size=2 face="Courier New">On Thu, Jul 13, 2006 at 01:12:47PM +0200, michel.ponceau@bull.net wrote:<br>
> I don't understand. Libvirt users must of course compile API and <br>
> application with the same libvirt.h, after updating the value of <br>
> VIR_MAX_CPUS when necessary. And go from first info element to next one by <br>
> (info+1), which adds sizeof(virVcpuInfo) to address, including correct <br>
> length of cpumap according to:<br>
>     unsigned char cpumap[(VIR_MAX_CPUS + 7) / 8]; /* Bit map of usable <br>
> real CPUs.<br>
> For alignment constraints, compiler rounds up the sizeof(virVcpuInfo)when <br>
> needed.<br>
<br>
  Well if you need to recompile the library to use a larger set of<br>
CPU you don't garantee API and ABI, by definition. And you will need<br>
to recompile the library because the structures passed between the<br>
app and the library change size, this will also likely affect the <br>
proxy since I expect vCPU informations to be provided (so communication<br>
between the library and proxy must change).<br>
  There is certainly solutions to the scalability problem, but suggesting<br>
a change of header and recompilation of the whole software stack is really<br>
not one I would like to propose, it breaks basically all expectations an<br>
enterprise customer would have w.r.t. using the library.<br>
<br>
  Unless I really misunderstood what you were suggesting, which is possible<br>
in that case reformulating it might be a good idea, because I really understood<br>
you want to make the MAX number of CPU a compile time setting.<br>
<br>
Daniel<br>
<br>
-- <br>
Daniel Veillard      | Red Hat http://redhat.com/<br>
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/<br>
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/<br>
</font>
<br>
<p>