]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow character devices to have different target types
authorMatthew Booth <mbooth@redhat.com>
Thu, 5 Nov 2009 13:19:14 +0000 (14:19 +0100)
committerDaniel Veillard <veillard@redhat.com>
Thu, 5 Nov 2009 13:28:39 +0000 (14:28 +0100)
commit89d549c3eba8bf37eabb082dfa3535d72bf4bd79
tree536da0f0344607c70ad81aa2b1bb889eb6d0f82a
parent8db32571ba923c74b83f3945da89bf060a9bcfb6
Allow character devices to have different target types

A character device's target (it's interface in the guest) had only a
single property: port. This patch is in preparation for adding targets
which require other properties.
Since this changes the conf type for character devices this affects
a number of drivers:

* src/conf/domain_conf.[ch] src/esx/esx_vmx.c src/qemu/qemu_conf.c
  src/qemu/qemu_driver.c src/uml/uml_conf.c src/uml/uml_driver.c
  src/vbox/vbox_tmpl.c src/xen/xend_internal.c src/xen/xm_internal.c:
  target properties are moved into a union in virDomainChrDef, and a
  targetType field is added to identify which union member should be
  used. All current code which touches a virDomainChrDef is updated both
  to use the new union field, and to populate targetType if necessary.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/esx/esx_vmx.c
src/qemu/qemu_conf.c
src/qemu/qemu_driver.c
src/uml/uml_conf.c
src/uml/uml_driver.c
src/vbox/vbox_tmpl.c
src/xen/xend_internal.c
src/xen/xm_internal.c