]> xenbits.xensource.com Git - libvirt.git/commit
Fix default console type setting
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 20 Oct 2011 13:56:20 +0000 (14:56 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 3 Nov 2011 12:01:48 +0000 (12:01 +0000)
commit209c2880b918a80449d42845ca1fd1497f2ec2da
tree7481164f14e72e4423f402a186571b06ef7e47d5
parent8866eed0970d44b7b51d28a4515d43d51774cf37
Fix default console type setting

The default console type may vary based on the OS type. ie a Xen
paravirt guests wants a 'xen' console, while a fullvirt guests
wants a 'serial' console.

A plain integer default console type in the capabilities does
not suffice. Instead introduce a callback that is passed the
OS type.

* src/conf/capabilities.h: Use a callback for default console
  type
* src/conf/domain_conf.c, src/conf/domain_conf.h: Use callback
  for default console type. Add missing LXC/OpenVZ console types.
* src/esx/esx_driver.c, src/libxl/libxl_conf.c,
  src/lxc/lxc_conf.c, src/openvz/openvz_conf.c,
  src/phyp/phyp_driver.c, src/qemu/qemu_capabilities.c,
  src/uml/uml_conf.c, src/vbox/vbox_tmpl.c,
  src/vmware/vmware_conf.c, src/xen/xen_hypervisor.c,
  src/xenapi/xenapi_driver.c: Set default console type callback
19 files changed:
src/conf/capabilities.h
src/conf/domain_conf.c
src/conf/domain_conf.h
src/esx/esx_driver.c
src/libxl/libxl_conf.c
src/lxc/lxc_conf.c
src/openvz/openvz_conf.c
src/phyp/phyp_driver.c
src/qemu/qemu_capabilities.c
src/test/test_driver.c
src/uml/uml_conf.c
src/vbox/vbox_tmpl.c
src/vmware/vmware_conf.c
src/xen/xen_hypervisor.c
src/xenapi/xenapi_driver.c
tests/testutilsqemu.c
tests/testutilsxen.c
tests/vmx2xmltest.c
tests/xml2vmxtest.c