From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Andrea Arcangeli <aarcange@redhat.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: mmu notifier calls in apply_to_page_range()
Date: Fri, 09 Jul 2010 10:30:48 -0700 [thread overview]
Message-ID: <4C375CC8.2030705@goop.org> (raw)
In-Reply-To: <20100709162255.GA5741@random.random>
On 07/09/2010 09:22 AM, Andrea Arcangeli wrote:
> mmu notifier only relevant for userland mappings, not kernel
> mappings. I don't know about the xen use, but for vmalloc certainly it
> can't be a problem to remove those two mmu notifier invalidates.
>
> Only bit that is worrysome is the mm == &init_mm
> pte_alloc_kernel|pte_alloc_map_lock. That seems to imply it may also
> be used to mangle over userland. But apparently all users are passing
> &init_mm as expected. I guess if you remove the mm parameter and you
> default to &init_mm definitely there will be no risk in removing the
> mmu notifier range_start/end invalidates.
>
No, we do have some users which use it on user memory. But those users
are using it as part of their own mmu notifier backend, so the recursive
calls are causing a problem. My point is that anyone using
apply_to_page_range should be making their own calls to mmu notifiers as
appropriate to whatever they're doing.
J
next prev parent reply other threads:[~2010-07-09 17:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 15:06 mmu notifier calls in apply_to_page_range() Jeremy Fitzhardinge
2010-07-09 15:12 ` Andrea Arcangeli
2010-07-09 15:51 ` Jeremy Fitzhardinge
2010-07-09 16:22 ` Andrea Arcangeli
2010-07-09 17:30 ` Jeremy Fitzhardinge [this message]
2010-07-09 17:36 ` Andrea Arcangeli
2010-07-09 17:41 ` Jeremy Fitzhardinge
2010-07-09 18:31 ` Andrea Arcangeli
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=4C375CC8.2030705@goop.org \
--to=jeremy@goop.org \
--cc=aarcange@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stefano.stabellini@eu.citrix.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