hypervisor: mshv: Restrict IO port exit to x86

IO ports exits can only happen on a x86 guest.

Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
Jinank Jain 2024-03-21 09:35:44 +05:30 committed by Rob Bradford
parent 2501426e47
commit c9e989de6e

View File

@ -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;