From ead4f767ff40fcabd1accb62eab921c5e8e0bdb7 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Sat, 13 Jul 2024 18:08:25 +0530 Subject: [PATCH] hypervisor: mshv: Restrict dependency to x86 iced_x86 is only available on x86 architecture. Signed-off-by: Jinank Jain --- hypervisor/src/mshv/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index a9469f93e..3c50cce85 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -13,6 +13,7 @@ use crate::hypervisor; use crate::vec_with_array_field; use crate::vm::{self, InterruptSourceConfig, VmOps}; use crate::HypervisorType; +#[cfg(target_arch = "x86_64")] use iced_x86::Register; use mshv_bindings::*; use mshv_ioctls::{set_registers_64, InterruptRequest, Mshv, NoDatamatch, VcpuFd, VmFd, VmType};