diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index e4df94b76..3d5315b19 100644 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -1547,7 +1547,9 @@ impl Vm { // Only reserve bootloader/VMSA regions for KVM + SEV-SNP; other hypervisors // (e.g. MSHV) handle this through their own import path. #[cfg(all(feature = "kvm", feature = "sev_snp"))] - if cpu_manager.lock().unwrap().sev_snp_enabled() { + if cpu_manager.lock().unwrap().sev_snp_enabled() + && cpu_manager.lock().unwrap().hypervisor_type() == hypervisor::HypervisorType::Kvm + { Self::reserve_bootloader_regions(&memory_manager)?; }