mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
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:
parent
2501426e47
commit
c9e989de6e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user