mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Introduce default_kernel_cmdline_with_platform() in GuestCommand that accepts an optional platform parameter. For confidential VMs, the platform arg is prepended to sev_snp=on. For regular VMs, it is passed via --platform if provided. Retain default_kernel_cmdline() as a convenience wrapper that calls the new method with None, preserving backward compatibility. This enables tests to pass additional platform configuration such as num_pci_segments alongside the default kernel and cmdline setup. Signed-off-by: Muminul Islam <muislam@microsoft.com>