diff --git a/repos/ports/src/virtualbox/ioport.cc b/repos/ports/src/virtualbox/ioport.cc index 34657f81cc..73556ddb8d 100644 --- a/repos/ports/src/virtualbox/ioport.cc +++ b/repos/ports/src/virtualbox/ioport.cc @@ -133,9 +133,15 @@ class Guest_ioports return 0; } + /* + * The whitelist is used to suppress log messages, which the VM tries + * to access I/O ports with no device model associated. TinyCore Linux + * seems to probe a lot of I/O ports, e.g. the LPT3 ports. + */ bool _white_listed(RTIOPORT port) { /* LPT1 */ if (port >= 0x0378 && port <= 0x037f) return true; + /* LPT3 */ if (port >= 0x0278 && port <= 0x027f) return true; /* ECP */ if (port >= 0x0778 && port <= 0x077a) return true; /* IDE1 */ if (port >= 0x0170 && port <= 0x017f) return true; return false;