qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin O'Connor <kevin@koconnor.net>
To: Avi Kivity <avi@redhat.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org,
	Gleb Natapov <gleb@redhat.com>
Subject: [Qemu-devel] Re: [SeaBIOS] [PATCHv2] load hpet info for HPET ACPI table from qemu
Date: Wed, 16 Jun 2010 20:55:05 -0400	[thread overview]
Message-ID: <20100617005505.GA1081@morn.localdomain> (raw)
In-Reply-To: <4C17045E.6000203@redhat.com>

On Tue, Jun 15, 2010 at 07:41:02AM +0300, Avi Kivity wrote:
> On 06/14/2010 09:25 PM, Kevin O'Connor wrote:
> >This seems to be a philosophical distinction.  Lets go over the
> >practical implications.
> In my experience, well-defined interfaces ("philosophical
> distinctions") are more important in the long term than
> practicalities.

I agree with the importance of clean interfaces.  However, I feel the
current approach to acpi table handling between qemu and seabios is
not ideal.  I'm proposing an interface which I believe is an
improvement.

> If a table needs to refer to some other information which is in a
> table that is generated by seabios, we cannot generate this table
> from qemu.  That's much worse that reviewing and applying two
> patches.

I understand.  Such tables would not make sense to generate in qemu.

I also understand and appreciate the desire for qemu to not touch
guest memory.  This means rsdp and rsdt are the domain of seabios.
The only other table that directly addresses the memory location of
another table (that I know of) is fadt - which is also tied to
seabios' smi handler - so this too is in seabios' domain.

I'm not aware of any dependencies to seabios in any of the other
tables (eg, madt, srat, hpet, ssdt, dsdt).

> >I'm not suggesting a radical rethink of fwcfg, but I fail to see the
> >advantage in introducing the arbitrary "struct hpet_fw_entry" when
> >there is a perfectly good, well defined, "struct acpi_20_hpet" that
> >already exists.  This new arbitrary intermediate format just
> >introduces "make work" for all of us.
> 
> Choosing an existing format is fine.  But seabios blindly copying
> qemu provided data is wrong IMO.

Okay.  For "struct acpi_20_hpet", what transformations or checks do
you think seabios needs to perform?

-Kevin

  reply	other threads:[~2010-06-17  0:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-14  8:30 [Qemu-devel] [PATCHv2] load hpet info for HPET ACPI table from qemu Gleb Natapov
2010-06-14 13:54 ` [Qemu-devel] Re: [SeaBIOS] " Kevin O'Connor
2010-06-14 14:09   ` Gleb Natapov
2010-06-14 14:40     ` Jamie Lokier
2010-06-14 16:03       ` Gleb Natapov
2010-06-14 14:51     ` Avi Kivity
2010-06-14 18:25       ` Kevin O'Connor
2010-06-14 18:56         ` Gleb Natapov
2010-06-14 20:12           ` Kevin O'Connor
2010-06-15  6:37             ` Gleb Natapov
2010-06-17  1:22               ` Kevin O'Connor
2010-06-17  7:45                 ` Gleb Natapov
2010-06-17  1:58             ` Peter Stuge
2010-06-14 19:38         ` Anthony Liguori
2010-06-15  4:47           ` Avi Kivity
2010-06-15  6:50             ` Gleb Natapov
2010-06-17  1:47               ` Kevin O'Connor
2010-06-17  3:58                 ` Avi Kivity
2010-06-17  6:57                   ` Peter Stuge
2010-06-15  0:54         ` Paul Brook
2010-06-15  4:41         ` Avi Kivity
2010-06-17  0:55           ` Kevin O'Connor [this message]
2010-06-17  6:44             ` 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=20100617005505.GA1081@morn.localdomain \
    --to=kevin@koconnor.net \
    --cc=avi@redhat.com \
    --cc=gleb@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 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).