From: ebiederm@xmission.com (Eric W. Biederman)
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Mike Travis <travis@sgi.com>, Yinghai Lu <yhlu.kernel@gmail.com>,
Dhaval Giani <dhaval@linux.vnet.ibm.com>,
Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>,
lkml <linux-kernel@vger.kernel.org>,
Jack Steiner <steiner@sgi.com>, Alan Mayer <ajm@sgi.com>,
Cliff Wickman <cpw@sgi.com>
Subject: Re: kernel BUG at arch/x86/kernel/io_apic_64.c:357!
Date: Tue, 29 Jul 2008 17:01:35 -0700 [thread overview]
Message-ID: <m1vdyo44v4.fsf@frodo.ebiederm.org> (raw)
In-Reply-To: <488FAAD9.4090907@goop.org> (Jeremy Fitzhardinge's message of "Tue, 29 Jul 2008 16:42:17 -0700")
Jeremy Fitzhardinge <jeremy@goop.org> writes:
> I'm still interested in making Xen's event channel-based interrupts fit better
> into the rest of the interrupt handling scheme. In particular, event channels
> map very closely to the x86-64 notion of a vector. There's 1024 of them per
> domain, and each is bound to a cpu. At the moment, I map them to irqs, which
> means that I need to allocate around 5-6 irqs per cpu, which makes everything
> very cluttered. I'd like to map event channels to vectors, and then map vectors
> to (irq,cpu) tuples.
Uh.... I'm not certain this applies.
> From what I've seen this is exactly how x86-64 currently has things set up, and
> I'm interested in making sure that 32-bit does the same thing.
Yes. x86_32 needs work to get cleaned up.
The architecture on x86_64 is as follows.
We have interrupt sources: GSIs in the case of acpi.
We have linux interupts: something with an irq number.
Vectors are an internal implementation detail.
I don't know if your event channels more closely resemble interrupt sources or internal
implementation details. If they are an implementation detail that interrupt sources
just flow through we should hide them like we do vectors. If event channels actually are
the sources of interrupts we should do something different.
> I'm also interested in having vectors being sourced from multiple interrupt
> controllers. So, some vectors would be sourced from APICs, and other are
> sourced from event channels. This would be useful for Xen domains which have
> direct access to hardware (ie, the dom0 control domain in the short term, and
> disaggregated driver domains later on), and fully emulated domains which have
> paravirtual drivers.
Generally easy except for the disparate methods of catching interrupts.
> I haven't studied the current code to see if this notion already exists or not.
>
> While the APIC interrupt model is the most architecturally important for the x86
> platform, I'd like to make sure we don't build in the assumption that it's the
> *only* interrupt model.
Well with iommus starting to show up in our irq paths it looks we are going to get
a lot of diversity.
Eric
next prev parent reply other threads:[~2008-07-30 0:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-29 16:09 kernel BUG at arch/x86/kernel/io_apic_64.c:357! Dhaval Giani
2008-07-29 18:35 ` Yinghai Lu
2008-07-29 19:20 ` Yinghai Lu
2008-07-29 20:14 ` Eric W. Biederman
2008-07-29 20:37 ` Yinghai Lu
2008-07-29 22:17 ` Mike Travis
2008-07-29 22:21 ` Yinghai Lu
2008-07-29 23:12 ` Eric W. Biederman
2008-07-30 0:00 ` Alan Cox
2008-07-30 1:29 ` Eric W. Biederman
2008-07-29 23:12 ` Eric W. Biederman
2008-07-29 23:42 ` Jeremy Fitzhardinge
2008-07-30 0:01 ` Eric W. Biederman [this message]
2008-07-30 0:50 ` Jeremy Fitzhardinge
2008-07-30 1:36 ` Eric W. Biederman
2008-08-01 17:48 ` Jeremy Fitzhardinge
2008-07-29 20:21 ` Dhaval Giani
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=m1vdyo44v4.fsf@frodo.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=ajm@sgi.com \
--cc=cpw@sgi.com \
--cc=dhaval@linux.vnet.ibm.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=steiner@sgi.com \
--cc=tglx@linutronix.de \
--cc=travis@sgi.com \
--cc=yhlu.kernel@gmail.com \
/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