Skip to content

RFC move global bdrv_states out of block.c

Wenchao Xia qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: add typedef for BlockDriverState queueblock.c include/block/block.h+3 -10 replies
2/3block: add function qemu_get_bds_queueblock.c include/block/block.h+8 -00 replies
3/3block: add parameter bds queue in bdrv_invalidate_cache_all()block.c include/block/block.h migration.c+4 -40 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] [RFC PATCH 0/3] move global bdrv_states out of block.c

In order to support multiple caller from different thread, global inside block layer should be carefully treated. bdrv_states represent a group of bds* which is now used by qemu, so it is a user concept which should be managed by user. This series tries to move it out, so later different thread can feed the API with its own bds* group.

This is a RFC series which does not completely convert the API, the missing part is adding parameter *l in all API which uses bdrv_states, then move bdrv_states to caller. About 10 functions need to be converted, so hope to get comments before that, to see if this is the right direction.

Wenchao Xia (3):
1 block: add typedef for BlockDriverState queue
2 block: add function qemu_get_bds_queue
3 block: add parameter bds queue in bdrv_invalidate_cache_all()

 block.c               |   11 ++++++++---
 include/block/block.h |    7 ++++++-
 migration.c           |    2 +-
 3 files changed, 15 insertions(+), 5 deletions(-)