From: Ingo Molnar <mingo@elte.hu>
To: Gleb Natapov <gleb@redhat.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>,
Yinghai Lu <yinghai@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Andrew Morton <akpm@linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: enable x2apic early at the first point
Date: Fri, 20 Feb 2009 13:59:19 +0100 [thread overview]
Message-ID: <20090220125919.GE26418@elte.hu> (raw)
In-Reply-To: <20090220123328.GC24826@redhat.com>
* Gleb Natapov <gleb@redhat.com> wrote:
> On Fri, Feb 20, 2009 at 12:06:51PM +0100, Ingo Molnar wrote:
> > > > > If you'll revert my patch it will not be possible to use
> > > > > x2apic in KVM (at least without KVM implementing interrupt
> > > > > remapping which is unneeded otherwise) and x2apic interface is
> > > > > much better for vitalization. Instead of reverting the patch
> > > > > it will be better to add check if x2apic can be used without
> > > > > intr-remmaping (all CPUs belong to cluster 0) or allow
> > > > > enabling of x2apic without IR if running as a guest.
> > > >
> > > > yep, that would be required - because your patch can break real
> > > > systems right now. Mind sending me a fix for it?
> > > >
> > > > I've applied Yinghai's fix as well, so please base it on latest
> > > > tip:master.
> > > >
> > > OK. Will send next week.
> >
> > ok, that's too long of a breakage window - i'll revert it then,
> > please send a new version once you have it.
> >
>
> What approach you actually prefer? Enable x2apic without
> intr-remapping only when running in KVM, or even if running on
> real HW but all CPUs are in cluster 0? If former then below is
> updated patch (tested only in KVM) if later then it's
> definitely for next week :)
The latter would be the ideal solution - i.e. next week :)
x2apic is a rare feature, and the more exposure we give it the
more tested it becomes. It's also obviously good for general
code structure if core CPU features are separated from
chipset/iommu features.
Plus, x2apic accesses could actually be faster than UC accesses
to the lapic, so whenever we can we should enter x2apic mode -
even if intr-remap is not turned on (because not needed).
Ingo
next prev parent reply other threads:[~2009-02-20 13:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-19 21:50 [PATCH] x86: enable x2apic early at the first point Yinghai Lu
2009-02-19 22:13 ` Suresh Siddha
2009-02-19 22:42 ` Yinghai Lu
2009-02-19 23:28 ` Suresh Siddha
2009-02-20 8:35 ` Ingo Molnar
2009-02-20 9:09 ` Gleb Natapov
2009-02-20 9:41 ` Ingo Molnar
2009-02-20 10:58 ` Gleb Natapov
2009-02-20 11:06 ` Ingo Molnar
2009-02-20 11:06 ` Gleb Natapov
2009-02-20 12:33 ` Gleb Natapov
2009-02-20 12:59 ` Ingo Molnar [this message]
2009-02-20 9:51 ` Ingo Molnar
2009-02-20 9:55 ` Ingo Molnar
2009-02-21 22:23 ` Suresh Siddha
2009-02-21 22:43 ` Yinghai Lu
2009-02-21 23:33 ` Suresh Siddha
2009-02-22 17:21 ` Ingo Molnar
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=20090220125919.GE26418@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=gleb@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=suresh.b.siddha@intel.com \
--cc=tglx@linutronix.de \
--cc=yinghai@kernel.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