On Mon, Nov 12, 2007 at 10:26:54AM -0500, Jay Gagnon wrote:
Jay Gagnon wrote:
> Dan Smith wrote:
>
>> JG> + cpuinfo = fopen("/proc/cpuinfo", "r");
>>
>> This should come from virNodeInfo.
>>
> Okay. Only question before I do that is do we have virNodeInfo in all
> the versions of libvirt we support? The only reason I had to write this
> myself at all is that the libvirt function that determines the maximum
> number of vcpus came in too late for us.
>
Looks like this question got lost in the shuffle. What version of
libvirt are we actually writing against? In other words, of the
versions shipped with the various distributions we're supporting, which
one is the oldest? I want to make sure I don't try to use something
that is too new.
See virNodeGetInfo in the table
http://libvirt.org/hvsupport.html
it's there since 0.1.0 (at least for Xen), so no problem,
Daniel
--
Red Hat Virtualization group
http://redhat.com/virtualization/
Daniel Veillard | virtualization library
http://libvirt.org/
veillard(a)redhat.com | libxml GNOME XML XSLT toolkit
http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine
http://rpmfind.net/