mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Add virtio queue affinity test for confidential VMs
Add test_virtio_queue_affinity to the common_cvm integration test module to verify that per-queue CPU pinning works correctly in confidential guest environments. The test creates a 4-vCPU Ubuntu Jammy-based confidential VM using GuestFactory and delegates to the existing _test_virtio_queue_affinity helper to validate queue-to-core affinity settings. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
c761d741bf
commit
bad5da622e
@@ -14970,4 +14970,13 @@ mod common_cvm {
|
||||
.with_cpu(2);
|
||||
_test_cpu_affinity(&guest);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_virtio_queue_affinity() {
|
||||
let disk_config = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string());
|
||||
let guest = GuestFactory::new_confidential_guest_factory()
|
||||
.create_guest(Box::new(disk_config))
|
||||
.with_cpu(4);
|
||||
_test_virtio_queue_affinity(&guest);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user