mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
7e62565cca
commit
80ce696006
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user