]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Re-arrange QEMU device alias assignment code
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 1 Feb 2010 15:58:38 +0000 (15:58 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Feb 2010 16:31:47 +0000 (16:31 +0000)
commit16478459da2a680a7f8e24dec69b8a27cd0e1df0
tree3b03fb854118591da04d44cbbf3e285c21ba870a
parent0943048ad09ff9c061a0d20d64e15bdbbf881f34
Re-arrange QEMU device alias assignment code

This patch re-arranges the QEMU device alias assignment code to
make it easier to call into the same codeblock when performing
device hotplug. The new code has the ability to skip over already
assigned names to facilitate hotplug

* src/qemu/qemu_driver.c: Call qemuAssignDeviceNetAlias()
  instead of qemuAssignNetNames
* src/qemu/qemu_conf.h: Export qemuAssignDeviceNetAlias()
  instead of qemuAssignNetNames
* src/qemu/qemu_driver.c: Merge the legacy disk/network alias
  assignment code into the main methods
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c