diff mbox

[QEMU-KVM,27/34] test: initialize idt on all processors

Message ID 1253093169-1423-28-git-send-email-avi@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Avi Kivity Sept. 16, 2009, 9:26 a.m. UTC
Signed-off-by: Avi Kivity <avi@redhat.com>
---
 kvm/user/test/x86/cstart64.S |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/kvm/user/test/x86/cstart64.S b/kvm/user/test/x86/cstart64.S
index 278465b..a55ad50 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