Re: race with page_referenced_one->ptep_test_and_clear_young and pagetable setup/pulldown

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Hugh Dickens <hugh@...>, David Rientjes <rientjes@...>, Zachary Amsden <zach@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>, Rusty Russell <rusty@...>, Andi Kleen <ak@...>, Keir Fraser <keir@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Thursday, October 4, 2007 - 9:52 pm

On Thu, 04 Oct 2007 18:43:32 -0700
Jeremy Fitzhardinge <jeremy@goop.org> wrote:


Either of these two would work.  Another alternative could be to
let test_and_clear_pte_flags have an exception table entry, where
we jump right to the next instruction if the instruction clearing
the flag fails.

That is the essentially variant you need for Xen, except the fast
path is still exactly the same it is as when running on native
hardware.

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
race with page_referenced_one-&gt;ptep_test_and_clear_young ..., Jeremy Fitzhardinge, (Thu Oct 4, 9:43 pm)
Re: race with page_referenced_one-&gt;ptep_test_and_clear_yo..., Jeremy Fitzhardinge, (Fri Oct 5, 3:39 pm)
Re: race with page_referenced_one-&gt;ptep_test_and_clear_yo..., Jeremy Fitzhardinge, (Fri Oct 5, 3:40 pm)
Re: race with page_referenced_one-&gt;ptep_test_and_clear_yo..., Jeremy Fitzhardinge, (Fri Oct 5, 12:08 am)
Re: race with page_referenced_one->ptep_test_and_clear_yo..., Rik van Riel, (Thu Oct 4, 9:52 pm)
Re: race with page_referenced_one-&gt;ptep_test_and_clear_yo..., Jeremy Fitzhardinge, (Fri Oct 5, 12:15 am)