]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add a qemuInterfaceStopDevices(), called when guest CPUs stop
authorLaine Stump <laine@laine.org>
Thu, 11 Dec 2014 20:11:10 +0000 (15:11 -0500)
committerLaine Stump <laine@laine.org>
Sun, 14 Dec 2014 03:20:28 +0000 (22:20 -0500)
commitc5a54917d5ae97653d29dbfe4995f2efcf5717d6
treec6d8e48d26f6c050caf920be665b68973369fee5
parent879c13d6cc92b6c3d97168e822201e5d00c4a1bc
qemu: add a qemuInterfaceStopDevices(), called when guest CPUs stop

We now have a qemuInterfaceStartDevices() which does the final
activation needed for the host-side tap/macvtap devices that are used
for qemu network connections. It will soon make sense to have the
converse qemuInterfaceStopDevices() which will undo whatever was done
during qemuInterfaceStartDevices().

A function to "stop" a single device has also been added, and is
called from the appropriate place in qemuDomainDetachNetDevice(),
although this is currently unnecessary - the device is going to
immediately be deleted anyway, so any extra "deactivation" will be for
naught. The call is included for completeness, though, in anticipation
that in the future there may be some required action that *isn't*
nullified by deleting the device.

This patch is a part of a more complete fix for:

  https://bugzilla.redhat.com/show_bug.cgi?id=1081461
src/qemu/qemu_hotplug.c
src/qemu/qemu_interface.c
src/qemu/qemu_interface.h
src/qemu/qemu_process.c