mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: add CVM test for memory_overhead
Add a CVM integration test for memory_overhead that validates the same functionality using a confidential guest with the basic_cvm_guest macro and custom memory size. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
0c477c12ec
commit
833d1d39a5
@@ -254,4 +254,12 @@ mod common_cvm {
|
||||
let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME);
|
||||
_test_pci_bar_reprogramming(&guest);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_memory_overhead() {
|
||||
let guest_memory_size_kb: u32 = 512 * 1024;
|
||||
let guest =
|
||||
basic_cvm_guest!(JAMMY_IMAGE_NAME).with_memory(&format!("{guest_memory_size_kb}K"));
|
||||
_test_memory_overhead(&guest, guest_memory_size_kb);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user