
On Mon, Feb 01, 2010 at 06:39:39PM +0000, Daniel P. Berrange wrote:
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 | 295 +++++++++++++++++++++++++----------------------- src/qemu/qemu_conf.h | 4 +- src/qemu/qemu_driver.c | 14 ++- 3 files changed, 166 insertions(+), 147 deletions(-)
ACK, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/