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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Tuesday, January 29, 2008 - 1:30 pm

On Tue, 29 Jan 2008, Andrea Arcangeli wrote:


We invalidate the range *after* populating it? Isnt it okay to establish 
references while populate_range() runs?


What we did is to invalidate the page (?!) before taking the pte lock. In 
the lock we replace the pte to point to another page. This means that we 
need to clear stale information. So we zap it before. If another reference 
is established after taking the spinlock then the pte contents have 
changed at the cirtical section fails.

Before the critical section starts we have gotten an extra refcount on the 
original page so the page cannot vanish from under us.


Now we invalidate the page after the transaction is complete. This means 
external pte can persist while we change the pte? Possibly even dirty the 
page?



--
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 ..., 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)