From c9e989de6e40b30360dec86f97d63517677eb681 Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Thu, 21 Mar 2024 09:35:44 +0530 Subject: [PATCH] hypervisor: mshv: Restrict IO port exit to x86 IO ports exits can only happen on a x86 guest. 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 8431c9e30..9f53b7adf 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -507,6 +507,7 @@ impl cpu::Vcpu for MshvVcpu { warn!("TRIPLE FAULT"); Ok(cpu::VmExit::Shutdown) } + #[cfg(target_arch = "x86_64")] hv_message_type_HVMSG_X64_IO_PORT_INTERCEPT => { let info = x.to_ioport_info().unwrap(); let access_info = info.access_info;