[Qemu-devel] [PATCH v2 0/4] vl: introduce vm_shutdown()

Stefan Hajnoczi posted 4 patches 7 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180228181946.22958-1-stefanha@redhat.com
Test checkpatch passed
Test docker-build@min-glib passed
Test docker-mingw@fedora passed
Test docker-quick@centos6 passed
Test ppcbe passed
Test ppcle passed
Test s390x passed
There is a newer version of this series
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(-)
[Qemu-devel] [PATCH v2 0/4] vl: introduce vm_shutdown()
Posted by Stefan Hajnoczi 7 years, 7 months ago
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


Re: [Qemu-devel] [PATCH v2 0/4] vl: introduce vm_shutdown()
Posted by Fam Zheng 7 years, 7 months ago
On Wed, 02/28 18:19, Stefan Hajnoczi wrote:
> 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.

This doesn't apply to master. Which branch is it based off?

Fam

Re: [Qemu-devel] [PATCH v2 0/4] vl: introduce vm_shutdown()
Posted by Stefan Hajnoczi 7 years, 7 months ago
On Thu, Mar 01, 2018 at 09:15:17AM +0800, Fam Zheng wrote:
> On Wed, 02/28 18:19, Stefan Hajnoczi wrote:
> > 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.
> 
> This doesn't apply to master. Which branch is it based off?

Sorry, I was going to look up the Based-on: syntax and then forgot.  I'm
not sure where it's documented, here is a guess at how it works:

Based-on: "[PATCH v3 0/5] block: fix blk_aio_*() segfault when blk->root == NULL" <20180216165015.30715-1-stefanha@redhat.com>
Re: [Qemu-devel] [PATCH v2 0/4] vl: introduce vm_shutdown()
Posted by Fam Zheng 7 years, 7 months ago
On Thu, 03/01 14:54, Stefan Hajnoczi wrote:
> On Thu, Mar 01, 2018 at 09:15:17AM +0800, Fam Zheng wrote:
> > On Wed, 02/28 18:19, Stefan Hajnoczi wrote:
> > > 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.
> > 
> > This doesn't apply to master. Which branch is it based off?
> 
> Sorry, I was going to look up the Based-on: syntax and then forgot.  I'm
> not sure where it's documented, here is a guess at how it works:
> 
> Based-on: "[PATCH v3 0/5] block: fix blk_aio_*() segfault when blk->root == NULL" <20180216165015.30715-1-stefanha@redhat.com>

Sorry for the poor documentation of Patchew, we should improve the situation
soon:

Based-on: <20180216165015.30715-1-stefanha@redhat.com>
([PATCH v3 0/5] block: fix blk_aio_*() segfault when blk->root == NULL)

(Only the "Based-on:" line matters)

Fam

Re: [Qemu-devel] [PATCH v2 0/4] vl: introduce vm_shutdown()
Posted by Stefan Hajnoczi 7 years, 7 months ago
On Fri, Mar 02, 2018 at 08:58:26AM +0800, Fam Zheng wrote:
> On Thu, 03/01 14:54, Stefan Hajnoczi wrote:
> > On Thu, Mar 01, 2018 at 09:15:17AM +0800, Fam Zheng wrote:
> > > On Wed, 02/28 18:19, Stefan Hajnoczi wrote:
> > > > 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.
> > > 
> > > This doesn't apply to master. Which branch is it based off?
> > 
> > Sorry, I was going to look up the Based-on: syntax and then forgot.  I'm
> > not sure where it's documented, here is a guess at how it works:
> > 
> > Based-on: "[PATCH v3 0/5] block: fix blk_aio_*() segfault when blk->root == NULL" <20180216165015.30715-1-stefanha@redhat.com>
> 
> Sorry for the poor documentation of Patchew, we should improve the situation
> soon:

It would be nice if the patchew.org front page linked to a guide for
patch authors that documents available features.

Stefan