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 <jinankjain@microsoft.com>
This commit is contained in:
Jinank Jain
2025-02-12 17:32:53 +00:00
committed by Bo Chen
parent a64ba04e78
commit f811e36443

View File

@@ -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<crate::StandardRegisters> {
unimplemented!()
}
#[cfg(target_arch = "aarch64")]
fn vcpu_finalize(&self, _feature: i32) -> cpu::Result<()> {
unimplemented!()