RFC move global bdrv_states out of block.c
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | block: add typedef for BlockDriverState queueblock.c include/ | +3 | 0 replies | |
| 2/3 | block: add function qemu_get_bds_queueblock.c include/ | +8 | 0 replies | |
| 3/3 | block: add parameter bds queue in bdrv_invalidate_cache_all()block.c include/ migration.c | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)