[PATCH kvm-unit-tests 2/4] x86: Reenable init tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reenabling init tests. Disabling the tests of port 0x92 since it currently
fails.

Signed-off-by: Nadav Amit <namit@xxxxxxxxxxxxxxxxx>
---
 x86/init.c        | 6 ++++++
 x86/unittests.cfg | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/x86/init.c b/x86/init.c
index 344dc1c..717bd12 100644
--- a/x86/init.c
+++ b/x86/init.c
@@ -2,6 +2,8 @@
 #include "apic.h"
 #include "io.h"
 
+#define CHECK_HARD_RESET	0
+
 #define KBD_CCMD_READ_OUTPORT   0xD0    /* read output port */
 #define KBD_CCMD_WRITE_OUTPORT  0xD1    /* write output port */
 #define KBD_CCMD_RESET          0xFE    /* CPU reset */
@@ -60,14 +62,18 @@ int main(int argc, char **argv)
 			printf("Uh, resume vector visited %d times?\n", resumed);
 			bad |= 2;
 		}
+
+#if CHECK_HARD_RESET
 		/*
 		 * Port 92 bit 0 is cleared on system reset.  On a soft reset it
 		 * is left to 1.  Use this to distinguish INIT from hard reset.
+		 * This test is currently disabled since it currently fails.
 		 */
 		if (resumed != 0 && (inb(0x92) & 1) == 0) {
 			printf("Uh, hard reset!\n");
 			bad |= 1;
 		}
+#endif
 	}
 
 	resumed = 0;
diff --git a/x86/unittests.cfg b/x86/unittests.cfg
index badb08a..d7ddd9d 100644
--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -83,8 +83,8 @@ file = hypercall.flat
 file = idt_test.flat
 arch = x86_64
 
-#[init]
-#file = init.flat
+[init]
+file = init.flat
 
 [msr]
 file = msr.flat
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux