From 875907d6f9b82dfd150c61ee5b5b0fe9198df395 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Sun, 24 Mar 2024 12:02:06 +0530 Subject: [PATCH] hypervisor: mshv: Add missing prototype of struct Vcpu for MshvVcpu These are required while compiling for target aarch64. Signed-off-by: Jinank Jain --- hypervisor/src/mshv/mod.rs | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index bfd2c1db4..1833be7d0 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -1162,6 +1162,46 @@ impl cpu::Vcpu for MshvVcpu { } } + #[cfg(target_arch = "aarch64")] + fn init_pmu(&self, irq: u32) -> cpu::Result<()> { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn has_pmu_support(&self) -> bool { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn setup_regs(&self, cpu_id: u8, boot_ip: u64, fdt_start: u64) -> cpu::Result<()> { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn get_sys_reg(&self, sys_reg: u32) -> cpu::Result { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn get_reg_list(&self, reg_list: &mut RegList) -> cpu::Result<()> { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn vcpu_init(&self, kvi: &VcpuInit) -> cpu::Result<()> { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn set_regs(&self, regs: &StandardRegisters) -> cpu::Result<()> { + unimplemented!() + } + + #[cfg(target_arch = "aarch64")] + fn get_regs(&self) -> cpu::Result { + unimplemented!() + } + #[cfg(target_arch = "x86_64")] /// /// X86 specific call to setup the CPUID registers.