Skip to content

make bh safe with hot-unplug

Liu Ping Fan qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3QEMUBH: introduce canceled member for bhasync.c+12 -50 replies
2/3QEMUBH: pin bh's referring object while schedulingasync.c include/block/aio.h stubs/Makefile.objs+29 -20 replies
3/3virtio-net: set referred object for virtio net's bhhw/net/virtio-net.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] make bh safe with hot-unplug

This series relies on refcnt of object used by bh callback to run against unplug.

Open issue:
Another choice may be rcu, but I think some issues are hard to resolve.
Using rcu, we have two choice:
when holding object refcnt, call qemu_bh_delete(); then after grace period, we can release. Or making qemu_bh_delete() sync in the path of DeviceState's finalization.
but currently, the callers of qemu_bh_delete() can not satisfy any of the two condition.

Liu Ping Fan (3):
QEMUBH: introduce canceled member for bh
QEMUBH: pin bh's referring object while scheduling
virtio-net: set referred object for virtio net's bh

 async.c             | 37 ++++++++++++++++++++++++++++++++-----
 hw/net/virtio-net.c |  1 +
 include/block/aio.h |  6 ++++++
 stubs/Makefile.objs |  1 +
 4 files changed, 40 insertions(+), 5 deletions(-)
Signature · 1 line
1.8.1.4