From 80ce6960062a001f92afe19d5f69f290818c6654 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Sat, 21 Mar 2026 18:56:19 -0700 Subject: [PATCH] tests: add CVM test for vdpa_block Add a CVM integration test for vdpa_block that validates the same functionality using a confidential guest with the basic_cvm_guest macro and with_cpu(2). Signed-off-by: Muminul Islam --- cloud-hypervisor/tests/integration_cvm.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cloud-hypervisor/tests/integration_cvm.rs b/cloud-hypervisor/tests/integration_cvm.rs index 9ee575ca7..039f8840f 100644 --- a/cloud-hypervisor/tests/integration_cvm.rs +++ b/cloud-hypervisor/tests/integration_cvm.rs @@ -316,4 +316,12 @@ mod common_cvm { let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME).with_cpu(2); _test_macvtap(&guest, true, "guestmacvtap1", "hostmacvtap1"); } + + #[test] + fn test_vdpa_block() { + assert!(exec_host_command_status("lsmod | grep vdpa_sim_blk").success()); + + let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME).with_cpu(2); + _test_vdpa_block(&guest); + } }