]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: refactor hotplug detach of hostdevs
authorLaine Stump <laine@laine.org>
Mon, 27 Feb 2012 11:53:19 +0000 (06:53 -0500)
committerLaine Stump <laine@laine.org>
Tue, 6 Mar 2012 04:24:22 +0000 (23:24 -0500)
commit93870c4ef7ee7aa8ed6fbfedcd7db6f59f891a0b
tree2ad0555c2c1606caa54f4d044f54b5d6818b873c
parent6fbb957d91a6bd1174b49e23715e72dee6051c0a
qemu: refactor hotplug detach of hostdevs

This refactoring is necessary to support hotplug detach of
type=hostdev network devices, but needs to be in a separate patch to
make potential debugging of regressions more practical.

Rather than the lowest level functions searching for a matching
device, the search is now done in the toplevel function, and an
intermediate-level function (qemuDomainDetachThisHostDevice()), which
expects that the device's entry is already found, is called (this
intermediate function will be called by qemuDomainDetachNetDevice() in
order to support detach of type=hostdev net devices)

This patch should result in 0 differences in functionality.
src/qemu/qemu_hotplug.c