Skip to contentSkip to conversation

x86: add INIT test

PATCH Applied Paolo Bonzini 2 participants 2 messages Mar 5, 2013 – Mar 7, 2013 KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

PATCH 1/1 x86: add INIT test

Test various ways of sending an INIT interrupt to the bootstrap processor. In all cases, the processor should start executing from 0xfffffff0 and other devices should be untouched.

With the patches I just sent to qemu-devel (also at branch x86-soft-reset of git://github.com/bonzini/qemu.git), this passes with TCG and the userspace irqchip. It fails with in-kernel irqchip.

---
 config-x86-common.mak |   5 +-
 x86/init.c            | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 133 insertions(+), 1 deletion(-)
 create mode 100644 x86/init.c
config-x86-common.mak +4 -1
index 8f909f7..8af1ceb 100644
@@ -35,7 +35,8 @@ tests-common = $(TEST_DIR)/vmexit.flat $(TEST_DIR)/tsc.flat \
                $(TEST_DIR)/hypercall.flat $(TEST_DIR)/sieve.flat \
                $(TEST_DIR)/kvmclock_test.flat  $(TEST_DIR)/eventinj.flat \
                $(TEST_DIR)/s3.flat $(TEST_DIR)/pmu.flat \
-               $(TEST_DIR)/tsc_adjust.flat $(TEST_DIR)/asyncpf.flat
+               $(TEST_DIR)/tsc_adjust.flat $(TEST_DIR)/asyncpf.flat \
+               $(TEST_DIR)/init.flat
 
 ifdef API
 tests-common += api/api-sample
@@ -69,6 +70,8 @@ $(TEST_DIR)/tsc_adjust.elf: $(cstart.o) $(TEST_DIR)/tsc_adjust.o
 
 $(TEST_DIR)/apic.elf: $(cstart.o) $(TEST_DIR)/apic.o
 
+$(TEST_DIR)/init.elf: $(cstart.o) $(TEST_DIR)/init.o
+
 $(TEST_DIR)/realmode.elf: $(TEST_DIR)/realmode.o
 	$(CC) -m32 -nostdlib -o $@ -Wl,-T,$(TEST_DIR)/realmode.lds $^
 
x86/init.c new file +129 -0

129 lines not on this page · raw message

Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 8 lines · Paolo Bonzini

Test various ways of sending an INIT interrupt to the bootstrap processor. In all cases, the processor should start executing from 0xfffffff0 and other devices should be untouched.

With the patches I just sent to qemu-devel (also at branch x86-soft-reset of git://github.com/bonzini/qemu.git), this passes with TCG and the userspace irqchip. It fails with in-kernel irqchip.

Quoted 6 lines
---
 config-x86-common.mak |   5 +-
 x86/init.c            | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 133 insertions(+), 1 deletion(-)
 create mode 100644 x86/init.c

Applied, thanks.