From 3f95ada71eb02c6fbd9d10739d3c369a1d32a2ee Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Sun, 24 Mar 2024 11:42:39 +0530 Subject: [PATCH] hypervisor: mshv: Add missing prototype of struct Vm for MshvVm These functions are required when compiling for aarch64. Signed-off-by: Jinank Jain --- hypervisor/src/mshv/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index dce562219..bfd2c1db4 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -2017,4 +2017,14 @@ impl vm::Vm for MshvVm { .complete_isolated_import(&data) .map_err(|e| vm::HypervisorVmError::CompleteIsolatedImport(e.into())) } + + #[cfg(target_arch = "aarch64")] + fn create_vgic(&self, config: VgicConfig) -> vm::Result>> { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn get_preferred_target(&self, kvi: &mut VcpuInit) -> vm::Result<()> { + unimplemented!() + } }