diff options
| author | Stefan Hajnoczi | 2022-10-13 20:59:07 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2022-10-26 20:56:42 +0200 |
| commit | c5640b3e2f1146e8eea9f9f62db87713388d8bc8 (patch) | |
| tree | 08b85c44df71cb9965b484860f1069f7c589a198 /tests/decode/err_init3.decode | |
| parent | stubs: add qemu_ram_block_from_host() and qemu_ram_get_fd() (diff) | |
| download | qemu-c5640b3e2f1146e8eea9f9f62db87713388d8bc8.tar.gz qemu-c5640b3e2f1146e8eea9f9f62db87713388d8bc8.tar.xz qemu-c5640b3e2f1146e8eea9f9f62db87713388d8bc8.zip | |
blkio: implement BDRV_REQ_REGISTERED_BUF optimization
Avoid bounce buffers when QEMUIOVector elements are within previously
registered bdrv_register_buf() buffers.
The idea is that emulated storage controllers will register guest RAM
using bdrv_register_buf() and set the BDRV_REQ_REGISTERED_BUF on I/O
requests. Therefore no blkio_map_mem_region() calls are necessary in the
performance-critical I/O code path.
This optimization doesn't apply if the I/O buffer is internally
allocated by QEMU (e.g. qcow2 metadata). There we still take the slow
path because BDRV_REQ_REGISTERED_BUF is not set.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20221013185908.1297568-13-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/decode/err_init3.decode')
0 files changed, 0 insertions, 0 deletions
