From 6fa6ead2b3830fb2f1d1330e0ac1079bfc89fc0b Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Sat, 21 Mar 2026 18:55:05 -0700 Subject: [PATCH] tests: add CVM test for tap_from_fd Add a CVM integration test for tap_from_fd 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cloud-hypervisor/tests/integration_cvm.rs b/cloud-hypervisor/tests/integration_cvm.rs index 254542427..0002f6084 100644 --- a/cloud-hypervisor/tests/integration_cvm.rs +++ b/cloud-hypervisor/tests/integration_cvm.rs @@ -298,4 +298,10 @@ mod common_cvm { let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME); _test_pvpanic(&guest); } + + #[test] + fn test_tap_from_fd() { + let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME).with_cpu(2); + _test_tap_from_fd(&guest); + } }