qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] drive_del vs. device_del: what should come first?
@ 2014-04-01 13:55 Heinz Graalfs
  2014-04-01 15:48 ` Markus Armbruster
  0 siblings, 1 reply; 6+ messages in thread
From: Heinz Graalfs @ 2014-04-01 13:55 UTC (permalink / raw)
  To: kwolf; +Cc: qemu-devel, stefanha

Hi Kevin,

doing a 

     virsh detach-device ...

ends up in the following QEMU monitor commands:

1. device_del ... 
2. drive_del ...

qmp_device_del() performs the device unplug path.
In case of a block device do_drive_del() tries to 
prevent further IO against the host device.

However, bdrv_find() during drive_del() results in 
an error, because the device is already gone. Due to
this error all the bdrv_xxx calls to quiesce the block
driver as well as all other processing is skipped.

Is the sequence that libvirt triggers OK?
Shouldn't drive_del be executed first?

Thanks,
Heinz

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

end of thread, other threads:[~2014-04-11 12:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 13:55 [Qemu-devel] drive_del vs. device_del: what should come first? Heinz Graalfs
2014-04-01 15:48 ` Markus Armbruster
2014-04-02 14:25   ` Heinz Graalfs
2014-04-02 17:40     ` Markus Armbruster
2014-04-03 15:20       ` Heinz Graalfs
2014-04-11 12:47       ` Heinz Graalfs

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).