From: Gleb Natapov <gleb@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>,
seabios@seabios.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default
Date: Fri, 20 Jul 2012 00:18:59 +0300 [thread overview]
Message-ID: <20120719211859.GA21761@redhat.com> (raw)
In-Reply-To: <1342731162-14285-2-git-send-email-ehabkost@redhat.com>
On Thu, Jul 19, 2012 at 05:52:41PM -0300, Eduardo Habkost wrote:
> When resetting an I/O APIC, its ID is set to 0, so set it to 0 on the
> MADT table too.
>
Actually BIOS needs to configure ioapic id to a uniqe value. This does
not really matter for KVM though.
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
> src/acpi.c | 2 +-
> src/config.h | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/acpi.c b/src/acpi.c
> index 55e4607..3f55de9 100644
> --- a/src/acpi.c
> +++ b/src/acpi.c
> @@ -335,7 +335,7 @@ build_madt(void)
> struct madt_io_apic *io_apic = (void*)apic;
> io_apic->type = APIC_IO;
> io_apic->length = sizeof(*io_apic);
> - io_apic->io_apic_id = CountCPUs;
> + io_apic->io_apic_id = BUILD_IOAPIC_ID;
> io_apic->address = cpu_to_le32(BUILD_IOAPIC_ADDR);
> io_apic->interrupt = cpu_to_le32(0);
>
> diff --git a/src/config.h b/src/config.h
> index 3a70867..878c691 100644
> --- a/src/config.h
> +++ b/src/config.h
> @@ -52,9 +52,11 @@
> #define BUILD_PCIMEM64_END 0x10000000000ULL
>
> #define BUILD_IOAPIC_ADDR 0xfec00000
> +#define BUILD_IOAPIC_ID 0
> #define BUILD_HPET_ADDRESS 0xfed00000
> #define BUILD_APIC_ADDR 0xfee00000
>
> +
> // Important real-mode segments
> #define SEG_IVT 0x0000
> #define SEG_BDA 0x0040
> --
> 1.7.10.4
--
Gleb.
next prev parent reply other threads:[~2012-07-19 21:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-19 20:52 [Qemu-devel] [seabios PATCH 0/2] Allow non-contiguous APIC IDs Eduardo Habkost
2012-07-19 20:52 ` [Qemu-devel] [seabios PATCH 1/2] acpi: set I/O APIC ID to 0 by default Eduardo Habkost
2012-07-19 21:18 ` Gleb Natapov [this message]
2012-07-20 16:22 ` Eduardo Habkost
2012-07-23 11:42 ` Gleb Natapov
2012-07-24 17:21 ` Eduardo Habkost
2012-07-19 20:52 ` [Qemu-devel] [seabios PATCH 2/2] allow CPUs to have non-contiguous Local APIC IDs Eduardo Habkost
2012-07-20 1:12 ` [Qemu-devel] [SeaBIOS] " Kevin O'Connor
2012-07-20 1:57 ` Eduardo Habkost
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=20120719211859.GA21761@redhat.com \
--to=gleb@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
/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.