qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Sebastian Herbszt <herbszt@gmx.de>
Cc: bochs-developers@lists.sourceforge.net, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [Bochs-developers] [PATCH] Read additional ACPI tables from a VM
Date: Mon, 9 Feb 2009 23:00:27 +0200	[thread overview]
Message-ID: <20090209210027.GA13234@redhat.com> (raw)
In-Reply-To: <336692845B5F4E10A22861C218D4EEBF@FSCPC>

On Mon, Feb 09, 2009 at 09:41:07PM +0100, Sebastian Herbszt wrote:
> Gleb Natapov wrote:
>
> Just a quick review.
>
>> diff --git a/bios/rombios32.c b/bios/rombios32.c
>> index f6ce225..29fd40a 100644
>> --- a/bios/rombios32.c
>> +++ b/bios/rombios32.c
>> @@ -455,6 +455,8 @@ unsigned long bios_table_end_addr;
>> #define QEMU_CFG_SIGNATURE  0x00
>> #define QEMU_CFG_ID         0x01
>> #define QEMU_CFG_UUID       0x02
>> +#define FW_CFG_ARCH_LOCAL     0x8000
>> +#define FW_CFG_ACPI_TABLES  (FW_CFG_ARCH_LOCAL + 0)
>
> No more QEMU_CFG prefix? Or is this different?
>
It is not. I'll change it to QEMU_CFG.

>> +
>> +static int acpi_load_table(int i, uint32_t addr, uint16_t *len)
>> +{
>> +    qemu_cfg_read((uint8_t*)len, sizeof(*len));
>> +
>> +    if (!*len)
>> +        return -1;
>> +
>> +    qemu_cfg_read((uint8_t*)addr, *len);
>> +    return 0;
>> +}
>> #endif
>>
>> void init_smp_msrs(void)
>
> Can you please diff against bochs cvs?
>
Will do. This patch was initially intended to go to qemu patch series so I
did it against patched bios source. And unpatched bochs bios does not
boot linux with qemu. IRQ routing problem or something.

>> +        rsdt->table_offset_entry[i+4] = cpu_to_le32(addr);
>> +        addr += len;
>> +    }
>> +#endif
>> +
>> +    /* RSDT */
>> +    memset(rsdt, 0, sizeof(*rsdt));
>
> This overwrites the "rsdt->table_offset_entry[i+4] = cpu_to_le32(addr);" assignment from above?
No since sizeof(*rstd) is less then that. But I'll move memset up, it
will be less confusing.

--
			Gleb.

  reply	other threads:[~2009-02-09 21:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09 14:30 [Qemu-devel] [PATCH] Read additional ACPI tables from a VM Gleb Natapov
2009-02-09 20:41 ` [Qemu-devel] Re: [Bochs-developers] " Sebastian Herbszt
2009-02-09 21:00   ` Gleb Natapov [this message]
2009-02-09 21:28     ` Anthony Liguori
2009-02-10  7:20       ` Gleb Natapov
2009-02-10 20:28         ` Marcelo Tosatti
2009-02-15 22:22         ` [Qemu-devel] Re: [Bochs-developers] [PATCH] Read additionalACPI " Sebastian Herbszt
2009-02-16 10:14           ` Gleb Natapov

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=20090209210027.GA13234@redhat.com \
    --to=gleb@redhat.com \
    --cc=bochs-developers@lists.sourceforge.net \
    --cc=herbszt@gmx.de \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).