diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index c5f2f5f1a..7d48f5679 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -112,6 +112,7 @@ impl hypervisor::Hypervisor for MshvHypervisor { fd: vm_fd, msrs, hv_state: hv_state_init(), + vmmops: None, })) } /// @@ -138,6 +139,7 @@ pub struct MshvVcpu { cpuid: CpuId, msrs: MsrEntries, hv_state: Arc>, // Mshv State + vmmops: Option>>, } /// Implementation of Vcpu trait for Microsoft Hypervisor @@ -339,6 +341,7 @@ pub struct MshvVm { msrs: MsrEntries, // Hypervisor State hv_state: Arc>, + vmmops: Option>>, } fn hv_state_init() -> Arc> { @@ -400,6 +403,7 @@ impl vm::Vm for MshvVm { cpuid: CpuId::new(1 as usize), msrs: self.msrs.clone(), hv_state: self.hv_state.clone(), + vmmops, }; Ok(Arc::new(vcpu)) }