On 28.02.2012 21:14, Laine Stump wrote:
> 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.
> ---
> New patch for V2.
> 
>  src/qemu/qemu_hotplug.c |  228 
> +++++++++++++++++++----------------------------
>  1 files changed, 93 insertions(+), 135 deletions(-)

Nice cleanup. I wish we have more like these :)

ACK

Michal

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to