tests: add CVM test for macvtap_hotplug

Add a CVM integration test for macvtap_hotplug that validates
the same functionality using a confidential guest with the
basic_cvm_guest macro and with_cpu(2).

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2026-03-21 18:56:04 -07:00
committed by Rob Bradford
parent b7bd19b24a
commit 7e62565cca

View File

@@ -310,4 +310,10 @@ mod common_cvm {
let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME).with_cpu(2);
_test_macvtap(&guest, false, "guestmacvtap0", "hostmacvtap0");
}
#[test]
fn test_macvtap_hotplug() {
let guest = basic_cvm_guest!(JAMMY_IMAGE_NAME).with_cpu(2);
_test_macvtap(&guest, true, "guestmacvtap1", "hostmacvtap1");
}
}