From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Cliff Wickman <cpw@sgi.com>, Ingo Molnar <mingo@elte.hu>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Comments on UV tlb flushing
Date: Mon, 28 Jul 2008 23:26:27 -0700 [thread overview]
Message-ID: <488EB813.6020903@goop.org> (raw)
In-Reply-To: <200807291412.18495.nickpiggin@yahoo.com.au>
Nick Piggin wrote:
>> 2. CONFIG_X86_UV should either depend on or select CONFIG_PARAVIRT.
>> 3. You should hook into paravirt_ops to enable your tlb-flush code.
>> That is, in - say - uv_bau_init() you do
>> "pv_mmu_ops.flush_tlb_others = uv_flush_tlb_others". This removes
>> a test/branch in the generic code. Using paravirt_ops may open
>> other opportunities to put UV-optimised functions in place without
>> having to modify generic code.
>>
>
> Really? It's not virtualized at all, although I don't like adding that
> branch for such a small class of systems either.
>
It's not virtualized, but paravirt_ops provides a wide range of
low-level hooks into all kinds of useful things; we may as well use them
if they're there. It's similar to VSMP's use of pvops: they do
something odd with shadowing the interrupt flag in AC in flags, and hook
irq_enable/disable/save/restore to implement it.
> It would possibly be better to have a new function (eg.
> override_flush_tlb_others()), which returns 0 if
> CONFIG_OVERRIDE_FLUSH_TLB is set, otherwise branches. And have *that*
> selected by CONFIG_PARAVIRT and X86_UV.
>
There doesn't seem much point. CONFIG_PARAVIRT will turn all the
flush_tlb_others() into indirect calls which can be hooked, then the
paravirt patching machinery will turn them back into direct calls. So
it basically gives you the flexibility of pluggin in arbitrary
functions, but with zero runtime overhead.
J
next prev parent reply other threads:[~2008-07-29 6:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-29 0:28 Comments on UV tlb flushing Jeremy Fitzhardinge
2008-07-29 4:12 ` Nick Piggin
2008-07-29 6:26 ` Jeremy Fitzhardinge [this message]
2008-07-29 13:32 ` Cliff Wickman
2008-07-29 14:43 ` Jeremy Fitzhardinge
2008-07-29 17:34 ` Cliff Wickman
2008-07-29 17:46 ` Jeremy Fitzhardinge
2008-07-29 20:04 ` Cliff Wickman
2008-07-29 18:13 ` Yinghai Lu
2008-07-29 18:25 ` Jeremy Fitzhardinge
2008-07-29 18:45 ` Mike Travis
2008-07-29 19:12 ` Jeremy Fitzhardinge
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=488EB813.6020903@goop.org \
--to=jeremy@goop.org \
--cc=cpw@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nickpiggin@yahoo.com.au \
/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