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:
Muminul Islam
2026-03-21 18:53:59 -07:00
committed by Rob Bradford
parent 0c477c12ec
commit 833d1d39a5

View File

@@ -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);
}
}