mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Make kernel optional in VM internals
When booting with TDX no kernel is supplied as the TDFV is responsible for loading the OS. The requirement to have the kernel is still currently enforced at the validation entry point; this change merely changes function prototypes and stored state to use Option<> to support. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
+2
-2
@@ -1013,8 +1013,8 @@ impl CpuManager {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn create_boot_vcpus(&mut self, entry_point: EntryPoint) -> Result<()> {
|
||||
self.create_vcpus(self.boot_vcpus(), Some(entry_point))
|
||||
pub fn create_boot_vcpus(&mut self, entry_point: Option<EntryPoint>) -> Result<()> {
|
||||
self.create_vcpus(self.boot_vcpus(), entry_point)
|
||||
}
|
||||
|
||||
// Starts all the vCPUs that the VM is booting with. Blocks until all vCPUs are running.
|
||||
|
||||
Reference in New Issue
Block a user