runtime-rs: test block device aio with native set

DO-NOT-MERGE: just for debugging block_device_aio with native.

Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
Alex Lyn 2025-08-19 19:21:17 +08:00 committed by stevenhorsman
parent e712c6b885
commit 7a98df3e05
2 changed files with 3 additions and 2 deletions

View File

@ -252,7 +252,8 @@ block_device_driver = "@DEFBLOCKSTORAGEDRIVER_QEMU@"
# - io_uring
# Linux io_uring API. This provides the fastest I/O operations on Linux, requires kernel>5.1 and
# qemu >=5.0.
block_device_aio = "@DEFBLOCKDEVICEAIO_QEMU@"
# block_device_aio = "@DEFBLOCKDEVICEAIO_QEMU@"
block_device_aio = "native"
# Specifies cache-related options will be set to block devices or not.
# Default false

View File

@ -637,7 +637,7 @@ impl QemuInner {
&self.config.blockdev_info.block_device_driver,
block_device.config.index,
&block_device.config.path_on_host,
&block_device.config.blkdev_aio.to_string(),
&&self.config.blockdev_info.block_device_aio,
block_device.config.is_direct,
block_device.config.is_readonly,
block_device.config.no_drop,