All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/4] vl: introduce vm_shutdown()
@ 2018-03-07 14:42 Stefan Hajnoczi
  2018-03-07 14:42 ` [Qemu-devel] [PATCH v3 1/4] block: add aio_wait_bh_oneshot() Stefan Hajnoczi
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Stefan Hajnoczi @ 2018-03-07 14:42 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Richard Henderson, Max Reitz, Paolo Bonzini,
	Kevin Wolf, qemu-block, Stefan Hajnoczi, Peter Crosthwaite,
	Michael S. Tsirkin

v3:
 * Rebase on qemu.git/master after AIO_WAIT_WHILE() was merged [Fam]
v2:
 * Tackle the .ioeventfd_stop() vs vq handler race by removing the ioeventfd
   from a BH in the IOThread [Fam]

There are several race conditions in virtio-blk/virtio-scsi dataplane code.
This patch series addresses them, see the commit description for details on the
individual cases.

Stefan Hajnoczi (4):
  block: add aio_wait_bh_oneshot()
  virtio-blk: fix race between .ioeventfd_stop() and vq handler
  virtio-scsi: fix race between .ioeventfd_stop() and vq handler
  vl: introduce vm_shutdown()

 include/block/aio-wait.h        | 13 +++++++++++++
 include/sysemu/iothread.h       |  1 -
 include/sysemu/sysemu.h         |  1 +
 cpus.c                          | 16 +++++++++++++---
 hw/block/dataplane/virtio-blk.c | 24 +++++++++++++++++-------
 hw/scsi/virtio-scsi-dataplane.c |  9 +++++----
 iothread.c                      | 31 -------------------------------
 util/aio-wait.c                 | 31 +++++++++++++++++++++++++++++++
 vl.c                            | 13 +++----------
 9 files changed, 83 insertions(+), 56 deletions(-)

-- 
2.14.3

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

end of thread, other threads:[~2018-03-08 17:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07 14:42 [Qemu-devel] [PATCH v3 0/4] vl: introduce vm_shutdown() Stefan Hajnoczi
2018-03-07 14:42 ` [Qemu-devel] [PATCH v3 1/4] block: add aio_wait_bh_oneshot() Stefan Hajnoczi
2018-03-07 14:42 ` [Qemu-devel] [PATCH v3 2/4] virtio-blk: fix race between .ioeventfd_stop() and vq handler Stefan Hajnoczi
2018-03-07 14:42 ` [Qemu-devel] [PATCH v3 3/4] virtio-scsi: " Stefan Hajnoczi
2018-03-07 14:42 ` [Qemu-devel] [PATCH v3 4/4] vl: introduce vm_shutdown() Stefan Hajnoczi
2018-03-07 14:44 ` [Qemu-devel] [PATCH v3 0/4] " Paolo Bonzini
2018-03-08  3:46 ` Fam Zheng
2018-03-08 16:01 ` Michael S. Tsirkin
2018-03-08 16:14   ` Paolo Bonzini
2018-03-08 17:47 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi

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.