vbox: add LPT3 to ioport whitelist

This commit is contained in:
Alexander Boettcher 2014-06-30 11:06:12 +02:00 committed by Norman Feske
parent 6f75bb750a
commit 21e9eebf25
1 changed files with 6 additions and 0 deletions

View File

@ -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;