kvm, tests: Use motherboard specific ports for testing

H. Peter Anvin suggested to use motherboard specific ports
for testing instead of ones well known. Thanks, Peter!

Reported-by: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2010-06-10 21:15:26 +04:00
committed by Will Deacon
parent 3db4f1beb3
commit 79241bb628
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ exit_kvm:
if (dbgtest_mode) {
if (kvm->kvm_run->exit_reason == KVM_EXIT_IO &&
kvm->kvm_run->io.port == 0)
kvm->kvm_run->io.port == 0xe0)
fprintf(stderr, "KVM: this is an expected IO error\n");
goto out;
}
+8 -1
View File
@@ -4,7 +4,14 @@
#define TIMER_FREQ 1193182
#define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x))
#define DBG_PORT 0
/*
* hpa noted:
*
* 0xe0..0xef are "motherboard specific", but 0xe9 is
* used for Bochs debugging and 0xed is the Phoenix-reserved
* delay port
*/
#define DBG_PORT 0xe0
#define TEST_COUNT 0x0200