diff mbox

[QEMU-KVM,28/34] test: initialize apic/x2apic on all processors

Message ID 1253093169-1423-29-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 |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/kvm/user/test/x86/cstart64.S b/kvm/user/test/x86/cstart64.S
index a55ad50..54b721f 100644
--- a/kvm/user/test/x86/cstart64.S
+++ b/kvm/user/test/x86/cstart64.S
@@ -148,6 +148,8 @@  ap_start32:
 .code64
 ap_start64:
 	call load_tss
+	call enable_apic
+	call enable_x2apic
 	sti
 	nop
 
@@ -156,7 +158,10 @@  ap_start64:
 
 start64:
 	call load_tss
+	call mask_pic_interrupts
+	call enable_apic
 	call smp_init
+	call enable_x2apic
 	call main
 	mov %eax, %edi
 	call exit