Skip to content

virtio: Drop out of coroutine context in virtio_load()

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vmstate: Mark VMStateInfo.get/put() coroutine_mixed_fninclude/migration/vmstate.h+5 -31 reply
2/2virtio: Drop out of coroutine context in virtio_load()hw/virtio/virtio.c+40 -56 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter XuStefan Hajnoczi
SeriesR-b
1/2A-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] virtio: Drop out of coroutine context in virtio_load()

This fixes a recently introduced assertion failure that was reported to happen when migrating virtio-net with a failover. The latent bug that we're executing code in coroutine context that was never supposed to run there has existed for a long time. However, the new assertion that callers of bdrv_graph_rdlock_main_loop() don't run in coroutine context makes it very visible because it's now always a crash.

Kevin Wolf (2):
vmstate: Mark VMStateInfo.get/put() coroutine_mixed_fn
virtio: Drop out of coroutine context in virtio_load()

 include/migration/vmstate.h |  8 ++++---
 hw/virtio/virtio.c          | 45 ++++++++++++++++++++++++++++++++-----
 2 files changed, 45 insertions(+), 8 deletions(-)
Signature · 1 line
2.41.0