]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: fix framebuffer port setting for HVM domains
authorJim Fehlig <jfehlig@suse.com>
Mon, 17 Mar 2014 20:22:44 +0000 (14:22 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 18 Mar 2014 21:14:34 +0000 (15:14 -0600)
commitb55cc5f4e31b488c4f9c3c8470c992c1f8f5d09c
tree24c9b7b6c810aa61d2ff6b59af797caa668e543b
parentb0b5422115d737d123721e80d5fa3aa1029138fe
libxl: fix framebuffer port setting for HVM domains

libxl uses the libxl_vnc_info and libxl_sdl_info fields from the
hvm union in libxl_domain_build_info struct when generating QEMU
args for VNC or SDL.  These fields were left unset by the libxl
driver, causing libxl to ignore any user settings.  E.g. with

  <graphics type='vnc' port='5950'/>

port would be ignored and QEMU would instead be invoked with

  -vnc 127.0.0.1:0,to=99

Unlike the libxl_domain_config struct, the libxl_domain_build_info
contains only a single libxl_vnc_info and libxl_sdl_info, so
populate these fields from the first vfb in
libxl_domain_config->vfbs.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: David Kiarie <davidkiarie4@gmail.com>
src/libxl/libxl_conf.c