mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Add multi-CPU test for confidential VMs
Add test_multi_cpu to the common_cvm integration test module to verify that multi-CPU functionality works correctly in confidential guest environments. The test creates an Ubuntu Jammy-based confidential VM using GuestFactory and delegates to the existing _test_multi_cpu helper to validate SMP boot with multiple vCPUs. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
18ed8e61d2
commit
848a280483
@@ -14945,4 +14945,12 @@ mod common_cvm {
|
||||
GuestFactory::new_confidential_guest_factory().create_guest(Box::new(disk_config));
|
||||
_test_virtio_vsock(&guest, false);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_multi_cpu() {
|
||||
let disk_config = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string());
|
||||
let guest =
|
||||
GuestFactory::new_confidential_guest_factory().create_guest(Box::new(disk_config));
|
||||
_test_multi_cpu(&guest);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user