mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Introduce GuestFactory struct that encapsulates GuestVmType, boot timeout, and nested virtualization defaults. This avoids repeatedly specifying VM type and associated defaults when constructing Guest instances in integration tests. Two factory constructors are provided: - new_regular_guest_factory: default timeout, nested enabled - new_confidential_guest_factory: CVM timeout, nested disabled Multiple create_guest variants allow customizing CPU count, memory size, and nested virtualization while inheriting the factory's VM type and timeout settings. Signed-off-by: Muminul Islam <muislam@microsoft.com>