Skip to content

Decouple block device removal from device removal

Ryan Harper qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add drive_get_by_idblockdev.c blockdev.h+13 -01 reply
2/2Fix Block Hotplug race with drive_unplug()block.c block.h blockdev.c +2 more+49 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] Decouple block device removal from device removal

This patch series decouples the detachment of a block device from the removal of the backing pci-device. Removal of a hotplugged pci device requires the guest to respond before qemu tears down the block device. In some cases, the guest may not respond leaving the guest with continued access to the block device.

The new monitor command, drive_unplug, will revoke a guests access to the block device independently of the removal of the pci device.

The first patch adds a new drive find method, the second patch implements the monitor command and block layer changes.