hypervisor: Enable MSHV compilation on ARM64

Along with it also enable clippy tests on MSHV aarch64 builds.

Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
Jinank Jain
2025-02-10 10:18:59 +00:00
parent 1105243aca
commit 960d702255
2 changed files with 16 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ pub mod arch;
pub mod kvm;
/// Microsoft Hypervisor implementation module
#[cfg(all(feature = "mshv", target_arch = "x86_64"))]
#[cfg(feature = "mshv")]
pub mod mshv;
/// Hypervisor related module
@@ -148,7 +148,7 @@ pub const USER_MEMORY_REGION_ADJUSTABLE: u32 = 1 << 4;
pub enum MpState {
#[cfg(feature = "kvm")]
Kvm(kvm_bindings::kvm_mp_state),
#[cfg(all(feature = "mshv", target_arch = "x86_64"))]
#[cfg(feature = "mshv")]
Mshv, /* MSHV does not support MpState yet */
}