From 31f1e67be73648c62704a598e1e3b8cdfca5f36d Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Thu, 5 Mar 2026 22:32:32 -0800 Subject: [PATCH] tests: Add PCI MSI interrupt test for confidential VMs Add test_pci_msi to the common_cvm integration test module to verify that PCI MSI interrupt functionality works correctly in confidential guest environments. The test creates an Ubuntu Jammy-based confidential VM using GuestFactory and delegates to the existing _test_pci_msi helper to validate MSI interrupts. 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 4e919884b..9ea1e0d88 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -14982,4 +14982,12 @@ mod common_cvm { .with_cpu(4); _test_virtio_queue_affinity(&guest); } + + #[test] + fn test_pci_msi() { + let disk_config = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string()); + let guest = + GuestFactory::new_confidential_guest_factory().create_guest(Box::new(disk_config)); + _test_pci_msi(&guest); + } }