From 6f8776ac50bebbedd60ee155e1f42fecb9c28812 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Thu, 5 Mar 2026 22:46:19 -0800 Subject: [PATCH] tests: Add virtio net ctrl queue test for confidential VMs Add test_virtio_net_ctrl_queue to the common_cvm integration test module to verify that virtio net control queue functionality works correctly in confidential guest environments. The test creates an Ubuntu Jammy-based confidential VM using GuestFactory and delegates to the existing _test_virtio_net_ctrl_queue helper to validate MTU configuration and ethtool offload settings. Signed-off-by: Muminul Islam --- cloud-hypervisor/tests/integration.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index 5ee867c81..2ffe0bef0 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -14993,4 +14993,12 @@ mod common_cvm { GuestFactory::new_confidential_guest_factory().create_guest(Box::new(disk_config)); _test_pci_msi(&guest); } + + #[test] + fn test_virtio_net_ctrl_queue() { + let disk_config = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string()); + let guest = + GuestFactory::new_confidential_guest_factory().create_guest(Box::new(disk_config)); + _test_virtio_net_ctrl_queue(&guest); + } }