qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@sgi.com>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: Anthony Liguori <aliguori@us.ibm.com>, Beth Kon <eak@us.ibm.com>,
	qemu-devel <qemu-devel@nongnu.org>, Avi Kivity <avi@redhat.com>
Subject: [Qemu-devel] Re: [PATCH] Seabios irq override v3
Date: Thu, 30 Jul 2009 15:12:29 +0200	[thread overview]
Message-ID: <4A719C3D.4080702@sgi.com> (raw)
In-Reply-To: <20090729232748.GA16198@morn.localdomain>

On 07/30/2009 01:27 AM, Kevin O'Connor wrote:
> I made some cleanups and committed a modified patch.
>
> I'd like to see what the dynamic irq0override code looks like.  The
> kvm on my machine is a little older and it fails when irq0override is
> set.
>
> Also, there is a set of irq overrides in the acpi madt code for kvm
> that set irq 5,9,10,11 to level triggered interrupts.  I don't see
> this in the latest kvm - can this now be removed?

Hi Kevin,

I justed tested your version and it works fine here. If I got some of
the formatting wrong, please let me know and I'll try to get it right
in the next set.

The tricky part with the irqoverride is that it is used by recent KVM,
but not older versions. qemu-kvm has a fw_cfg flag it uses to set (and
not set it when it detects an older version of KVM), however upstream
QEMU relies on the irqoverride unconditionally.

As the BIOS cannot detect which version of KVM it is running on, there
are two options, either we port the irqoverride fw_cfg to upstream QEMU,
or accept that Seabios will not work on older versions of KVM. I don't
think Anthony is super excited about adding this to upstream QEMU since
it is for legacy support, and I don't anticipate any distros starting
to ship Seabios with older version of KVM. I think it would be simpler
to just accept it won't work with the older KVM.

I thought about how to best do the dynamic override thing, and I think
the best thing is to just set it when we detect we are running on QEMU,
be it QEMU, KVM, or KQEMU. I have a patch that allows me to remove all
instances of CONFIG_KVM in Seabios, by using a new fw_cfg that tells the
bios what emulator it is running on. It would be interesting to see if
we could come up with a way for Coreboot to flag as well, so we can
share a single BIOS binary.

For the MADT stuff, I really don't know. Maybe Avi or Anthony can
comment?

I will post this patch shortly, I just need to make a few more minor
tweaks to it.

Cheers,
Jes

  reply	other threads:[~2009-07-30 13:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-29 13:57 [Qemu-devel] [PATCH] Seabios irq override v3 Jes Sorensen
2009-07-29 23:27 ` [Qemu-devel] " Kevin O'Connor
2009-07-30 13:12   ` Jes Sorensen [this message]
2009-07-30 16:05     ` Beth Kon
2009-08-03 13:17       ` 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=4A719C3D.4080702@sgi.com \
    --to=jes@sgi.com \
    --cc=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=eak@us.ibm.com \
    --cc=kevin@koconnor.net \
    --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).