[libvirt] cpu_map data access for libxl driver

Daniel P. Berrange berrange at redhat.com
Thu Jul 7 12:47:28 UTC 2016


On Thu, Jul 07, 2016 at 02:37:39PM +0200, Cedric Bosdonnat wrote:
> Hi Jiri, all,
> 
> As I mentioned earlier today on IRC, I have started implementing CPU configuration
> support for libxl driver.
> 
> libxl expects a string definition the state of all the feature (easy to create), but also
> the numeric values for the CPU family and model. virCPUDef holds the name as a string, but
> not the numeric values though there are stored in the cpu_map.xml.
> 
> For what libxl expects, search for 'cpuid=' in this man page:
> http://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html
> 
> Any idea how to get those values from the libxl driver?

I'd suggest just extending the virCPUDef to hold them, and populating it from
the cpu_map.xml

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list