qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] v2 Decouple block device removal from device removal
@ 2010-10-19 14:32 Ryan Harper
  2010-10-19 14:32 ` [Qemu-devel] [PATCH 1/2] v2 Add drive_get_by_id Ryan Harper
  2010-10-19 14:32 ` [Qemu-devel] [PATCH 2/2] v2 Fix Block Hotplug race with drive_unplug() Ryan Harper
  0 siblings, 2 replies; 11+ messages in thread
From: Ryan Harper @ 2010-10-19 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Hajnoczi, Anthony Liguori, Ryan Harper, Kevin Wolf

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.

Changes since v1:
- CodingStyle fixes
- Added qemu_aio_flush() to bdrv_unplug()

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Qemu-devel] [PATCH 0/2] v3 Decouple block device removal from device removal
@ 2010-10-22  2:55 Ryan Harper
  2010-10-22  2:55 ` [Qemu-devel] [PATCH 1/2] v2 Add drive_get_by_id Ryan Harper
  0 siblings, 1 reply; 11+ messages in thread
From: Ryan Harper @ 2010-10-22  2:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Hajnoczi, Anthony Liguori, Ryan Harper, Kevin Wolf

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.

Changes since v2:
- Added QMP command for drive_unplug()

Changes since v1:
- CodingStyle fixes
- Added qemu_aio_flush() to bdrv_unplug()

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-10-29 13:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 14:32 [Qemu-devel] [PATCH 0/2] v2 Decouple block device removal from device removal Ryan Harper
2010-10-19 14:32 ` [Qemu-devel] [PATCH 1/2] v2 Add drive_get_by_id Ryan Harper
2010-10-19 14:32 ` [Qemu-devel] [PATCH 2/2] v2 Fix Block Hotplug race with drive_unplug() Ryan Harper
2010-10-19 15:21   ` Stefan Hajnoczi
2010-10-21 13:27   ` Daniel P. Berrange
2010-10-21 21:37     ` Ryan Harper
2010-10-22  8:10       ` Daniel P. Berrange
2010-10-22 10:31       ` Kevin Wolf
2010-10-29 13:33         ` Markus Armbruster
  -- strict thread matches above, loose matches on Subject: below --
2010-10-22  2:55 [Qemu-devel] [PATCH 0/2] v3 Decouple block device removal from device removal Ryan Harper
2010-10-22  2:55 ` [Qemu-devel] [PATCH 1/2] v2 Add drive_get_by_id Ryan Harper
2010-10-22 15:41   ` Luiz Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).