[PATCH] qemu: Support removable for scsi disk

2023-06-04 Thread Han Han
Allow //disk/target@removable for scsi disk devices, since QEMU has support the removable attribute for scsi-hd device from v0.14.0[1]. [1]: 419e691f8e: scsi-disk: Allow overriding SCSI INQUIRY removable bit Signed-off-by: Han Han --- docs/formatdomain.rst | 2 +-

[PATCH] qemuDomainWaitForDeviceRemoval: recheck the value of priv->unplug.alias when timeout

2023-06-04 Thread zuoboqun
When detaching a device, the following race condition may happen: Once qemuDomainSignalDeviceRemoval() marks the device for removal, it returns true, which means it is the caller that marked the device for removal is going to remove the device from domain definition. But