From 083892b2e22d2a79cb92656e22aa259854718940 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 16 Mar 2026 17:13:52 +0100 Subject: [PATCH] tests: windows: remove sparse=off workaround The config space fix in the previous commit correctly populates the discard and write zeroes fields, so the sparse=off workaround is no longer needed for Windows guests. Replace default_disks_sparse_off() with default_disks() in all Windows test cases and remove the explicit sparse=off from the multi queue test. Signed-off-by: Anatol Belski --- cloud-hypervisor/tests/integration.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index fb1049100..7218cbb39 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -11844,7 +11844,7 @@ mod windows { .args(["--kernel", edk2_path().to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() .default_net() .capture_output() .spawn() @@ -11893,7 +11893,7 @@ mod windows { .args([ "--disk", format!( - "path={},num_queues=4,sparse=off", + "path={},num_queues=4", windows_guest .guest() .disk_config @@ -11961,7 +11961,7 @@ mod windows { .args(["--kernel", ovmf_path.to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() .default_net() .capture_output() .spawn() @@ -12050,7 +12050,7 @@ mod windows { .args(["--kernel", ovmf_path.to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() .default_net() .capture_output() .spawn() @@ -12125,7 +12125,7 @@ mod windows { .args(["--kernel", ovmf_path.to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() .default_net() .capture_output() .spawn() @@ -12199,7 +12199,7 @@ mod windows { .args(["--kernel", ovmf_path.to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() .default_net() .capture_output() .spawn() @@ -12273,7 +12273,7 @@ mod windows { .args(["--kernel", ovmf_path.to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() .default_net() .capture_output() .spawn() @@ -12369,7 +12369,7 @@ mod windows { .args(["--kernel", ovmf_path.to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() .default_net() .capture_output() .spawn() @@ -12501,7 +12501,7 @@ mod windows { .args(["--kernel", ovmf_path.to_str().unwrap()]) .args(["--serial", "tty"]) .args(["--console", "off"]) - .default_disks_sparse_off() + .default_disks() // The multi net dev config is borrowed from test_multiple_network_interfaces .args([ "--net",