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