Re: PTE access rules & abstraction

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Wednesday, September 24, 2008 - 2:57 pm

Benjamin Herrenschmidt wrote:

What do you propose then?  Ideally one would like to get something that
works for powerpc, s390, all the wacky ia64 modes as well as x86.  The
ia64 folks proposed something, but I've not looked at it closely.  From
an x86 virtualization perspective, something that's basically x86 with
as much scope for batching and deferring as possible would be fine.

As a start, what's the state machine for a pte?  What states can it be
in, and how does it move from state to state?  It sounds like powerpc
has at least one extra state above x86 (hashed, with the hash key stored
in the pte itself?).


ptep_get_and_clear() is not batchable anyway, because the x86
implementation requires an atomic xchg on the pte, which will likely
result in some sort of trap (and if it doesn't then it doesn't need
batching).  The start/commit API was specifically so that we can do the
mprotect (and fork COW updates) in a batchable way (in Xen its
implemented with a pte update hypercall which updates the pte without
affecting the A/D bits).

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PTE access rules & abstraction, Benjamin Herrenschmidt, (Fri Sep 19, 10:42 am)
Re: PTE access rules & abstraction, Jeremy Fitzhardinge, (Sun Sep 21, 11:22 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Mon Sep 22, 2:05 pm)
Re: PTE access rules & abstraction, Nick Piggin, (Mon Sep 22, 8:10 pm)
Re: PTE access rules & abstraction, David Miller, (Mon Sep 22, 8:16 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Mon Sep 22, 10:31 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Mon Sep 22, 10:35 pm)
Re: PTE access rules & abstraction, Jeremy Fitzhardinge, (Mon Sep 22, 11:13 pm)
Re: PTE access rules & abstraction, Nick Piggin, (Mon Sep 22, 11:18 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Mon Sep 22, 11:49 pm)
Re: PTE access rules & abstraction, Nick Piggin, (Tue Sep 23, 2:50 am)
Re: PTE access rules & abstraction, peter, (Tue Sep 23, 4:54 am)
Re: PTE access rules & abstraction, Hugh Dickins, (Wed Sep 24, 11:45 am)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Wed Sep 24, 2:20 pm)
Re: PTE access rules & abstraction, Jeremy Fitzhardinge, (Wed Sep 24, 2:57 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Wed Sep 24, 3:07 pm)
Re: PTE access rules & abstraction, Martin Schwidefsky, (Wed Sep 24, 3:17 pm)
Re: PTE access rules & abstraction, Jeremy Fitzhardinge, (Wed Sep 24, 3:43 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Wed Sep 24, 3:53 pm)
Re: PTE access rules & abstraction, Hugh Dickins, (Wed Sep 24, 4:55 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Wed Sep 24, 6:04 pm)
Re: PTE access rules & abstraction, Jeremy Fitzhardinge, (Thu Sep 25, 11:15 am)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Thu Sep 25, 2:44 pm)
Re: PTE access rules & abstraction, Jeremy Fitzhardinge, (Thu Sep 25, 3:27 pm)
Re: PTE access rules & abstraction, Benjamin Herrenschmidt, (Thu Sep 25, 4:02 pm)