From 7c6c45128d44ed811c9b85e07cb1ce5f0886bbd8 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Thu, 21 Mar 2024 14:56:18 +0530 Subject: [PATCH] hypervisor: mshv: Move ClockData under x86 feature flag ClockData enum is only defined for x86_64 architecture so let's use it just for that. Signed-off-by: Jinank Jain --- hypervisor/src/mshv/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index 2375db6ff..1fd852047 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -29,8 +29,11 @@ pub mod x86_64; #[cfg(feature = "sev_snp")] use snp_constants::*; +#[cfg(target_arch = "x86_64")] +use crate::ClockData; + use crate::{ - ClockData, CpuState, IoEventAddress, IrqRoutingEntry, MpState, UserMemoryRegion, + CpuState, IoEventAddress, IrqRoutingEntry, MpState, UserMemoryRegion, USER_MEMORY_REGION_ADJUSTABLE, USER_MEMORY_REGION_EXECUTE, USER_MEMORY_REGION_READ, USER_MEMORY_REGION_WRITE, };