From: Avi Kivity <[EMAIL PROTECTED]>

there are reports it crashes some hosts.

Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/user/config-x86-common.mak b/user/config-x86-common.mak
index cac499f..ec3f1ac 100644
--- a/user/config-x86-common.mak
+++ b/user/config-x86-common.mak
@@ -8,7 +8,7 @@ balloon_ctl: balloon_ctl.o
 
 tests-common = $(TEST_DIR)/bootstrap \
                        $(TEST_DIR)/vmexit.flat \
-                       $(TEST_DIR)/smp.flat
+                       $(TEST_DIR)/smp.flat  $(TEST_DIR)/port80.flat
 
 test_cases: $(tests-common) $(tests)
 
@@ -34,6 +34,8 @@ $(TEST_DIR)/smp.flat: $(cstart.o) $(TEST_DIR)/smptest.o
  
 $(TEST_DIR)/emulator.flat: $(cstart.o) $(TEST_DIR)/vm.o $(TEST_DIR)/print.o
 
+$(TEST_DIR)/port80.flat: $(cstart.o) $(TEST_DIR)/port80.o
+
 $(TEST_DIR)/libcflat.a: $(TEST_DIR)/lib/exit.o $(TEST_DIR)/lib/printf.o \
        $(TEST_DIR)/lib/smp.o $(TEST_DIR)/lib/string.o
        ar rcs $@ $^
diff --git a/user/test/x86/port80.c b/user/test/x86/port80.c
new file mode 100644
index 0000000..a1c4099
--- /dev/null
+++ b/user/test/x86/port80.c
@@ -0,0 +1,13 @@
+
+#include "printf.h"
+
+int main()
+{
+    int i;
+
+    printf("begining port 0x80 write test\n");
+    for (i = 0; i < 10000000; ++i)
+       asm volatile("outb %al, $0x80");
+    printf("done\n");
+    return 0;
+}

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to