Re: [PATCH 12/17] qemu: refactor hotplug detach of hostdevs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]