]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
libxl: Implement basic video device selection
authorStefan Bader <stefan.bader@canonical.com>
Tue, 1 Jul 2014 07:58:18 +0000 (09:58 +0200)
committerJim Fehlig <jfehlig@suse.com>
Fri, 10 Oct 2014 21:08:45 +0000 (15:08 -0600)
commit1298daca29612313f2b48df66cc6db007b0ae20e
tree481ae9d2a47296f4698fe1b534b526a667a25def
parentc5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf
libxl: Implement basic video device selection

This started as an investigation into an issue where libvirt (using the
libxl driver) and the Xen host, like an old couple, could not agree on
who is responsible for selecting the VNC port to use.

Things usually (and a bit surprisingly) did work because, just like that
old couple, they had the same idea on what to do by default. However it
was possible that this ended up in a big argument.

The problem is that display information exists in two different places:
in the vfbs list and in the build info. And for launching the device model,
only the latter is used. But that never gets initialized from libvirt. So
Xen allows the device model to select a default port while libvirt thinks
it has told Xen that this is done by libvirt (though the vfbs config).

While fixing that, I made a stab at actually evaluating the configuration
of the video device. So that it is now possible to at least decide between
a Cirrus or standard VGA emulation and to modify the VRAM within certain
limits using libvirt.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_conf.c
src/libxl/libxl_domain.c