Re: [patch 2/6] mmu_notifier: Callbacks to invalidate address ranges

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Arcangeli
Date: Wednesday, January 30, 2008 - 4:52 pm

On Wed, Jan 30, 2008 at 11:50:26AM -0800, Christoph Lameter wrote:

start/finish/begin/end/before/after? ;)

I'd drop the 'int lock', you should skip the before/after if
i_mmap_lock isn't null and offload it to the caller before taking the
lock. At least for the "after" call that looks a few liner change,
didn't figure out the "before" yet.

Given the amount of changes that are going on in design terms to cover
both XPMEM and GRE, can we split the minimal invalidate_page that
provides an obviously safe and feature complete mmu notifier code for
KVM, and merge that first patch that will cover KVM 100%, it will
cover GRE 90%, and then we add invalidate_range_before/after in a
separate patch and we close the remaining 10% for GRE covering
ptep_get_and_clear or whatever else ptep_*?  The mmu notifiers are
made so that are extendible in backwards compatible way. I think
invalidate_page inside ptep_clear_flush is the first fundamental block
of the mmu notifiers. Then once the fundamental is in and obviously
safe and feature complete for KVM, the rest can be added very easily
with incremental patches as far as I can tell. That would be my
preferred route ;)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 2/6] mmu_notifier: Callbacks to invalidate address ..., Christoph Lameter, (Mon Jan 28, 1:28 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Andrea Arcangeli, (Tue Jan 29, 11:28 am)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 12:55 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 1:30 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 2:35 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 2:53 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 3:39 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 3:55 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 5:20 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 5:22 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 5:34 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Tue Jan 29, 5:35 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Andrea Arcangeli, (Wed Jan 30, 10:04 am)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Andrea Arcangeli, (Wed Jan 30, 11:25 am)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Wed Jan 30, 12:35 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Wed Jan 30, 12:41 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Wed Jan 30, 12:50 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Wed Jan 30, 1:55 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Andrea Arcangeli, (Wed Jan 30, 4:52 pm)
Re: [patch 2/6] mmu_notifier: Callbacks to invalidate addr ..., Christoph Lameter, (Wed Jan 30, 5:01 pm)
Re: [kvm-devel] [patch 2/6] mmu_notifier: Callbacks to inv ..., Christoph Lameter, (Wed Jan 30, 6:46 pm)
Re: [kvm-devel] [patch 2/6] mmu_notifier: Callbacks to inv ..., Christoph Lameter, (Wed Jan 30, 7:08 pm)
Re: [kvm-devel] [patch 2/6] mmu_notifier: Callbacks to inv ..., Christoph Lameter, (Wed Jan 30, 7:37 pm)
Re: [kvm-devel] [patch 2/6] mmu_notifier: Callbacks to inv ..., Christoph Lameter, (Wed Jan 30, 7:51 pm)
Re: [kvm-devel] mmu_notifier: invalidate_range_start with ..., Christoph Lameter, (Wed Jan 30, 7:56 pm)