From 3cbbce353e770dab2109e04d5c56f96c22980670 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 13 Mar 2026 09:25:16 +0100 Subject: [PATCH] tests: Set image_type=raw for rate limiter block test images The rate limiter tests create raw block images with dd but do not specify image_type=raw. Without it the VMM autodetects the format and enables sector 0 write protection for unknown image types, causing I/O errors when fio writes to sector 0 and making the test hang until timeout. Signed-off-by: Anatol Belski --- cloud-hypervisor/tests/integration.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index 1d198828e..bbc199933 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -14402,11 +14402,11 @@ mod rate_limiter { let test_blk_params = if bandwidth { format!( - "path={blk_rate_limiter_test_img},num_queues={num_queues},bw_size={bw_size},bw_refill_time={bw_refill_time}" + "path={blk_rate_limiter_test_img},num_queues={num_queues},bw_size={bw_size},bw_refill_time={bw_refill_time},image_type=raw" ) } else { format!( - "path={blk_rate_limiter_test_img},num_queues={num_queues},ops_size={bw_size},ops_refill_time={bw_refill_time}" + "path={blk_rate_limiter_test_img},num_queues={num_queues},ops_size={bw_size},ops_refill_time={bw_refill_time},image_type=raw" ) }; @@ -14512,7 +14512,7 @@ mod rate_limiter { ); disk_args.push(format!( - "path={test_img_path},num_queues={num_queues},rate_limit_group=group0" + "path={test_img_path},num_queues={num_queues},rate_limit_group=group0,image_type=raw" )); }