From 9e6a023f7fbea18eb12712a25fd7acc88e57a50f Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 3 Dec 2020 14:49:32 +0000 Subject: [PATCH] vmm: Don't continue to lookup debug I/O port When using an PIO write to 0x80 which is a special case handle that and then return without going through the resolve. This removes an extra warning that is reported. Signed-off-by: Rob Bradford --- vmm/src/vm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index 20c16dfdc..6b624f2bd 100644 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -422,6 +422,7 @@ impl VmmOps for VmOps { fn pio_write(&self, addr: u64, data: &[u8]) -> hypervisor::vm::Result<()> { if addr == DEBUG_IOPORT as u64 && data.len() == 1 { self.log_debug_ioport(data[0]); + return Ok(()); } if let Err(e) = self.io_bus.write(addr, data) {