All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] virtio-scsi: fix hotplug ->reset() vs event race
@ 2018-07-10 15:50 Stefan Hajnoczi
  2018-07-10 15:50 ` [Qemu-devel] [PATCH 1/2] qdev: add HotplugHandler->post_plug() callback Stefan Hajnoczi
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2018-07-10 15:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: l00284672, Fam Zheng, Michael S. Tsirkin, Paolo Bonzini,
	Igor Mammedov, Stefan Hajnoczi

The virtio-scsi command virtqueues run during hotplug.  This creates the
possibility of race conditions since the guest can submit commands while the
monitor is performing hotplug.

See Patch 2 for a fix for the ->reset() vs event race condition that Zhengui Li
encountered.

Zhengui Li: Sorry it took me so long to look into this.  Please let me know if
this fixes the issue you are seeing.  Thanks!

Stefan Hajnoczi (2):
  qdev: add HotplugHandler->post_plug() callback
  virtio-scsi: fix hotplug ->reset() vs event race

 include/hw/hotplug.h  | 12 ++++++++++++
 hw/core/hotplug.c     | 11 +++++++++++
 hw/core/qdev.c        |  7 +++++++
 hw/scsi/virtio-scsi.c | 11 ++++++++++-
 4 files changed, 40 insertions(+), 1 deletion(-)

-- 
2.17.1

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

end of thread, other threads:[~2018-07-12  9:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-10 15:50 [Qemu-devel] [PATCH 0/2] virtio-scsi: fix hotplug ->reset() vs event race Stefan Hajnoczi
2018-07-10 15:50 ` [Qemu-devel] [PATCH 1/2] qdev: add HotplugHandler->post_plug() callback Stefan Hajnoczi
2018-07-11 11:01   ` Paolo Bonzini
2018-07-11 13:29   ` Stefan Hajnoczi
2018-07-11 13:32     ` Paolo Bonzini
2018-07-11 14:15       ` Igor Mammedov
2018-07-11 15:22   ` Igor Mammedov
2018-07-11 16:48     ` Paolo Bonzini
2018-07-12  9:04       ` Igor Mammedov
2018-07-10 15:50 ` [Qemu-devel] [PATCH 2/2] virtio-scsi: fix hotplug ->reset() vs event race Stefan Hajnoczi
2018-07-11  1:43 ` [Qemu-devel] [PATCH 0/2] " Fam Zheng
2018-07-11  3:13 ` l00284672

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.