From f811e36443615b1da5fa8f98b80e64ae3933eaf6 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Wed, 12 Feb 2025 17:32:53 +0000 Subject: [PATCH] hypervisor: Add support for get/set regs for ARM guest on MSHV Enable getting and setting registers for ARM64 guests on MSHV. Signed-off-by: Jinank Jain --- hypervisor/src/mshv/mod.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index 6684838b6..af7dfa505 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -559,11 +559,9 @@ impl cpu::Vcpu for MshvVcpu { /// /// Returns StandardRegisters with default value set /// - #[cfg(target_arch = "x86_64")] fn create_standard_regs(&self) -> crate::StandardRegisters { mshv_bindings::StandardRegisters::default().into() } - #[cfg(target_arch = "x86_64")] /// /// Returns the vCPU general purpose registers. /// @@ -575,7 +573,6 @@ impl cpu::Vcpu for MshvVcpu { .into()) } - #[cfg(target_arch = "x86_64")] /// /// Sets the vCPU general purpose registers. /// @@ -1315,16 +1312,6 @@ impl cpu::Vcpu for MshvVcpu { unimplemented!() } - #[cfg(target_arch = "aarch64")] - fn set_regs(&self, _regs: &crate::StandardRegisters) -> cpu::Result<()> { - unimplemented!() - } - - #[cfg(target_arch = "aarch64")] - fn get_regs(&self) -> cpu::Result { - unimplemented!() - } - #[cfg(target_arch = "aarch64")] fn vcpu_finalize(&self, _feature: i32) -> cpu::Result<()> { unimplemented!()