mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tdx: Permit starting Cloud Hypervisor without --kernel
This is not required if TDX is present. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -1531,6 +1531,7 @@ pub struct VmConfig {
|
||||
|
||||
impl VmConfig {
|
||||
pub fn validate(&self) -> ValidationResult<()> {
|
||||
#[cfg(not(feature = "tdx"))]
|
||||
self.kernel.as_ref().ok_or(ValidationError::KernelMissing)?;
|
||||
|
||||
if self.console.mode == ConsoleOutputMode::Tty && self.serial.mode == ConsoleOutputMode::Tty
|
||||
|
||||
Reference in New Issue
Block a user