diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index 9c37457c1..3f793cd80 100644 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -612,7 +612,6 @@ impl Vm { #[cfg(not(target_arch = "riscv64"))] timestamp, snapshot, - &config, )?; // Perform hypervisor-specific initialization @@ -798,10 +797,9 @@ impl Vm { boot_id_list: BTreeSet, #[cfg(not(target_arch = "riscv64"))] timestamp: Instant, snapshot: Option<&Snapshot>, - _vm_config: &Arc>, ) -> Result>> { #[cfg(feature = "tdx")] - let dynamic = !_vm_config.lock().unwrap().is_tdx_enabled(); + let dynamic = !config.lock().unwrap().is_tdx_enabled(); #[cfg(not(feature = "tdx"))] let dynamic = true;