vmm: allow IGVM payload alongside a kernel

Previously, the payload validation rejected an IGVM file combined with
a kernel or firmware.

Relax this constraint to allow an IGVM carrying a firmware (e.g Oak
stage0) to be paired with a separate kernel image.

This enables fw_cfg-style boot where stage0 loads a kernel provided
through fw_cfg rather than embedded in the IGVM file itself.

Signed-off-by: Ruben Hakobyan <hruben@meta.com>
This commit is contained in:
Ruben Hakobyan
2026-04-07 07:59:20 -07:00
committed by Rob Bradford
parent cdbe43f423
commit c31f5d4998

View File

@@ -849,7 +849,7 @@ impl PayloadConfig {
#[cfg(feature = "igvm")]
{
if self.igvm.is_some() {
if self.firmware.is_some() || self.kernel.is_some() {
if self.firmware.is_some() {
return Err(PayloadConfigError::IgvmPlusOtherPayloads);
}
return Ok(());