All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org
Subject: [PATCH QEMU-KVM 27/34] test: initialize idt on all processors
Date: Wed, 16 Sep 2009 12:26:02 +0300	[thread overview]
Message-ID: <1253093169-1423-28-git-send-email-avi@redhat.com> (raw)
In-Reply-To: <1253093169-1423-1-git-send-email-avi@redhat.com>

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 kvm/user/test/x86/cstart64.S |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

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
-- 
1.6.4.1


  parent reply	other threads:[~2009-09-16  9:26 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16  9:25 [PATCH QEMU-KVM 00/34] Test framwork ported to qemu -kernel Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 01/34] Add test device Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 02/34] test: load image immediately after program headers Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 03/34] test: Set up a default stack Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 04/34] test: add multiboot headers to startup files Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 05/34] test: Map 4GB of memory Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 06/34] test: use real APIC instead of fake APIC Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 07/34] test: switch output format to elf Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 08/34] test: Remove smp support from access.c Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 09/34] test: fix realmode test print_serial() direction flag Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 10/34] test: port readmode tests to multiboot Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 11/34] test: Allow adding mode vmexit latency tests Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 12/34] test: Add vmcall latency test Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 13/34] test: add cr8 latency tests Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 14/34] test: Mask PIC interrupts before APIC test Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 15/34] test-device: add support for irq injection Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 16/34] test: Use function table for APIC access Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 17/34] test: use new apic_icr_write() to issue IPI Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 18/34] test: add x2apic test Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 19/34] test: add support for the firmware configuration interface Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 20/34] test: Add fwcfg interface for getting the cpu count Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 21/34] test: vm: map mmio 1:1 Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 22/34] test: apic: use 1:1 mapping for apic Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 23/34] test: Move apic functions to libcflat Avi Kivity
2009-09-16  9:25 ` [PATCH QEMU-KVM 24/34] test: switch 64-bit smp startup to real APIC Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 25/34] test: add apic_id() accessor Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 26/34] test: Use xapic_write() to enable xapic() Avi Kivity
2009-09-16  9:26 ` Avi Kivity [this message]
2009-09-16  9:26 ` [PATCH QEMU-KVM 28/34] test: initialize apic/x2apic on all processors Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 29/34] test: wait for all processors to complete initialization Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 30/34] test: port smp runtime to real apic Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 31/34] test: drop irq.flat Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 32/34] test: fix autodependencies Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 33/34] test: Fix compilation rule for assembly files wrt autodependencies Avi Kivity
2009-09-16  9:26 ` [PATCH QEMU-KVM 34/34] test: avoid deleting intermediate .o files Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1253093169-1423-28-git-send-email-avi@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.