]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: support live change of the bridge used by a guest network device
authorHendrik Schwartke <hendrik@os-t.de>
Wed, 28 Mar 2012 19:11:09 +0000 (15:11 -0400)
committerLaine Stump <laine@laine.org>
Sat, 31 Mar 2012 00:14:36 +0000 (20:14 -0400)
commit2711ac87160d7ac7d550c57f4339e6c6749942fa
tree5795630136442eb1f4d33977086138bf91fb6592
parent87681495454f7f62173dd2c10adc7c26f23e6faf
qemu: support live change of the bridge used by a guest network device

This patch was created to resolve this upstream bug:

  https://bugzilla.redhat.com/show_bug.cgi?id=784767

and is at least a partial solution to this RHEL RFE:

  https://bugzilla.redhat.com/show_bug.cgi?id=805071

Previously the only attribute of a network device that could be
modified by virUpdateDeviceFlags() ("virsh update-device") was the
link state; attempts to change any other attribute would log an error
and fail.

This patch adds recognition of a change in bridge device name, and
supports reconnecting the guest's interface to the new device.
Standard audit logs for detaching and attaching a network device are
also generated. Although the current auditing function doesn't log the
bridge being attached to, this will later be changed in a separate
patch.
src/qemu/qemu_hotplug.c