summaryrefslogtreecommitdiff
path: root/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-09-16 12:26:02 +0300
committerMarcelo Tosatti <mtosatti@redhat.com>2009-09-16 16:00:51 -0300
commitf42b5ef6cfb8f43aea438f603e5ef8f54b16db24 (patch)
tree9a33feeb6037987b5820d4ff036d8ac0b7284c11 /kvm
parenttest: Use xapic_write() to enable xapic() (diff)
downloadqemu-kvm-f42b5ef6cfb8f43aea438f603e5ef8f54b16db24.tar.gz
qemu-kvm-f42b5ef6cfb8f43aea438f603e5ef8f54b16db24.tar.bz2
qemu-kvm-f42b5ef6cfb8f43aea438f603e5ef8f54b16db24.zip
test: initialize idt on all processors
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm')
-rw-r--r--kvm/user/test/x86/cstart64.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvm/user/test/x86/cstart64.S b/kvm/user/test/x86/cstart64.S
index 278465b8f..a55ad5043 100644
--- a/kvm/user/test/x86/cstart64.S
+++ b/kvm/user/test/x86/cstart64.S
@@ -1,6 +1,7 @@
#include "apic-defs.h"
+.globl boot_idt
boot_idt = 0
ipi_vector = 0x20
@@ -160,7 +161,12 @@ start64:
mov %eax, %edi
call exit
+idt_descr:
+ .word 16 * 256 - 1
+ .quad boot_idt
+
load_tss:
+ lidtq idt_descr
mov $0, %eax
mov %ax, %ss
mov $(APIC_DEFAULT_PHYS_BASE + APIC_ID), %eax