Re: [PATCH 15/21] qemu_hotplug: pull qemuDomainUpdateDeviceList out of qemuDomainDetachDeviceLive

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

 



On Thu, Mar 21, 2019 at 18:28:55 -0400, Laine Stump wrote:
> qemuDomainDetachDeviceLive() is called from two places in
> qemu_driver.c. Move the call to qemuDomainUpdateDeviceList() from the
> end of that function, which is now in qemu_hotplug.c, to the two
> places that call qemuDomainDetachDeviceLive().
> 
> Removing that one call from qemuDomainDetachDeviceList() will permit
> us to call it from the test driver, replacing the separate calls to
> qemuDomainDetachDeviceDiskLive(), qemuDomainDetachChrDevice(),
> qemuDomainDetachShmemDevice() and qemuDomainDetachWatchdog(). We want
> to do this so that part of the common functionality of those three
> functions (and the rest of the device-specific Detach functions) can
> be pulled up into qemuDomainDetachDeviceLive() without breaking the
> test. (This is done in the next patch).

I think actually that calling qemuDomainUpdateDeviceList does not make
much sense in qemuDomainDetachDeviceLive. At that point the device still
may not be removed. Calling it from the DEVICE_DELETED handler should be
sufficient.

Attachment: signature.asc
Description: PGP signature

--
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]

  Powered by Linux