From: Zachary Amsden <zach@vmware.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Jan Beulich <jbeulich@novell.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: arch_flush_lazy_mmu_mode() in arch/x86/mm/highmem_32.c
Date: Mon, 17 Nov 2008 11:54:44 -0800 [thread overview]
Message-ID: <1226951684.6905.13.camel@bodhitayantram.eng.vmware.com> (raw)
In-Reply-To: <4921BA8E.60806@goop.org>
On Mon, 2008-11-17 at 10:40 -0800, Jeremy Fitzhardinge wrote:
> Yes. The Xen code only disables interrupts temporarily while actually
> constructing a new multicall list member, to stop a half-constructed
> multicall from being issued by a nested flush. But that's very brief,
> and cheap under Xen.
We have truly magical ways of doing the same thing.
> You could do the flush in the fault handler itself, rather than
> vmalloc_sync_one. If you enter the handler with outstanding updates,
> then flush them and return. Hm, but that only works if you're always
> going from NP->P; if you're doing P->P updates then you may just end up
> with stale mappings.
vmalloc_sync_one really is just the fault handler, factored out to look
nice... in any case, the faults here will aways be NP->P; once created,
the page tables handling the vmalloc area will never be released, so the
PDE never transitions from P->P or P->NP (the PTEs do).
> The Novell kernel tree. Jan's been doggedly forward-porting the old Xen
> patches.
Okay, that explains it... the patch sequence here contains a bit of
"fun" IIRC.
next prev parent reply other threads:[~2008-11-17 19:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-17 9:08 arch_flush_lazy_mmu_mode() in arch/x86/mm/highmem_32.c Jan Beulich
2008-11-17 17:53 ` Zachary Amsden
2008-11-17 18:40 ` Jeremy Fitzhardinge
2008-11-17 19:54 ` Zachary Amsden [this message]
2008-11-18 8:03 ` Jan Beulich
2008-11-18 17:01 ` Jeremy Fitzhardinge
2008-11-18 17:28 ` Jan Beulich
2008-11-18 18:00 ` Jeremy Fitzhardinge
2008-11-18 18:06 ` Zachary Amsden
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=1226951684.6905.13.camel@bodhitayantram.eng.vmware.com \
--to=zach@vmware.com \
--cc=jbeulich@novell.com \
--cc=jeremy@goop.org \
--cc=linux-kernel@vger.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