All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Vincent Minet <vincent@vincent-minet.net>
Cc: kvm@vger.kernel.org, beth kon <eak@us.ibm.com>
Subject: Re: [PATCH] bios: Fix MADT corruption and RSDT size when using -acpitable
Date: Wed, 13 May 2009 19:59:34 -0500	[thread overview]
Message-ID: <4A0B6CF6.60609@codemonkey.ws> (raw)
In-Reply-To: <1242262325-18444-1-git-send-email-vincent@vincent-minet.net>

Vincent Minet wrote:
> External ACPI tables are counted twice for the RSDT size and the load
> address for the first external table is in the MADT (interrupt override
> entries are overwritten).
>
> Signed-off-by: Vincent Minet <vincent@vincent-minet.net>
>   

Beth,

I think you had a patch attempting to address the same issue.  It was a 
bit more involved though.

Which is the proper fix and are they both to the same problem?

Regards,

Anthony Liguori

> ---
>  kvm/bios/rombios32.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/kvm/bios/rombios32.c b/kvm/bios/rombios32.c
> index cbd5f15..289361b 100755
> --- a/kvm/bios/rombios32.c
> +++ b/kvm/bios/rombios32.c
> @@ -1626,7 +1626,7 @@ void acpi_bios_init(void)
>      addr = base_addr = ram_size - ACPI_DATA_SIZE;
>      rsdt_addr = addr;
>      rsdt = (void *)(addr);
> -    rsdt_size = sizeof(*rsdt) + external_tables * 4;
> +    rsdt_size = sizeof(*rsdt);
>      addr += rsdt_size;
>  
>      fadt_addr = addr;
> @@ -1787,6 +1787,7 @@ void acpi_bios_init(void)
>              }
>              int_override++;
>              madt_size += sizeof(struct madt_int_override);
> +            addr += sizeof(struct madt_int_override);
>          }
>          acpi_build_table_header((struct acpi_table_header *)madt,
>                                  "APIC", madt_size, 1);
>   


  reply	other threads:[~2009-05-14  0:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14  0:52 [PATCH] bios: Fix MADT corruption and RSDT size when using -acpitable Vincent Minet
2009-05-14  0:59 ` Anthony Liguori [this message]
2009-05-14 16:20   ` Beth Kon
2009-05-15 16:13     ` Marcelo Tosatti
2009-05-15 18:24       ` Beth Kon

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=4A0B6CF6.60609@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=eak@us.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=vincent@vincent-minet.net \
    /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.