From 21e9eebf25d4a6128446356543a3a4150dfd6e97 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Mon, 30 Jun 2014 11:06:12 +0200 Subject: [PATCH] vbox: add LPT3 to ioport whitelist --- repos/ports/src/virtualbox/ioport.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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;