Fix bdrv_read/write emulation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | posix-aio-compat: Split out posix_aio_process_queueposix-aio-compat.c | +27 | 0 replies | |
| 2/8 | Add qemu_aio_process_queue()aio.c block/ linux-aio.c +2 more | +50 | 0 replies | |
| 3/8 | Split out bottom halvesMakefile.target async.c qemu-common.h +1 more | +132 | 0 replies | |
| 4/8 | Introduce contexts for asynchronous callbacksasync.c qemu-common.h qemu-tool.c | +110 | 0 replies | |
| 5/8 | block: Use new AsyncContext for bdrv_read/write emulationblock.c | +18 | 0 replies | |
| 6/8 | posix-aio-compat: Honour AsyncContextposix-aio-compat.c | +12 | 0 replies | |
| 7/8 | linux-aio: Honour AsyncContextlinux-aio.c | +72 | 0 replies | |
| 8/8 | Revert "qcow2: Bring synchronous read/write back to life"block/ block/ block/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH 0/8] Fix bdrv_read/write emulation
The other day we re-introduced synchronous qcow2 read/write functions to work around the buggy bdrv_read/write emulation, this series implements the proper fix for it.
Basically what it's doing is to ensure that the emulation only runs its own AIO callbacks and bottom halves. Callbacks from outside need to wait so they can't corrupt the internal state of the driver calling bdrv_read/write (and assuming that nobody else runs in between).
Kevin Wolf (8):
posix-aio-compat: Split out posix_aio_process_queue Add qemu_aio_process_queue()
Split out bottom halves
Introduce contexts for asynchronous callbacks
block: Use new AsyncContext for bdrv_read/write emulation
posix-aio-compat: Honour AsyncContext
linux-aio: Honour AsyncContext
Revert "qcow2: Bring synchronous read/write back to life"
Makefile.target | 2 +- aio.c | 30 +++++++ async.c | 216 +++++++++++++++++++++++++++++++++++++++++++++++++ block.c | 22 ++++- block/curl.c | 8 +- block/qcow2-cluster.c | 6 +- block/qcow2.c | 51 +----------- block/qcow2.h | 3 - linux-aio.c | 87 ++++++++++++++++---- posix-aio-compat.c | 58 +++++++++---- qemu-aio.h | 13 +++ qemu-common.h | 5 + qemu-tool.c | 13 +++ vl.c | 104 ----------------------- 14 files changed, 418 insertions(+), 200 deletions(-) create mode 100644 async.c