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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue