• S
    libxl: Implement basic video device selection · 1298daca
    Stefan Bader 提交于
    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: NStefan Bader <stefan.bader@canonical.com>
    Signed-off-by: NJim Fehlig <jfehlig@suse.com>
    1298daca
libxl_conf.c 50.1 KB