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

Peter Krempa pkrempa at redhat.com
Fri Mar 22 11:41:02 UTC 2019


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190322/06c5ef77/attachment-0001.sig>


More information about the libvir-list mailing list