[PATCH] KVM: PPC: Add generic hpte management functions
Alexander Graf
agraf at suse.de
Sat Jun 26 09:18:50 EST 2010
On 26.06.2010, at 01:16, Alexander Graf wrote:
> Currently the shadow paging code keeps an array of entries it knows about.
> Whenever the guest invalidates an entry, we loop through that entry,
> trying to invalidate matching parts.
>
> While this is a really simple implementation, it is probably the most
> ineffective one possible. So instead, let's keep an array of lists around
> that are indexed by a hash. This way each PTE can be added by 4 list_add,
> removed by 4 list_del invocations and the search only needs to loop through
> entries that share the same hash.
>
> This patch implements said lookup and exports generic functions that both
> the 32-bit and 64-bit backend can use.
Yikes - I forgot -n.
This is patch 1/2.
Alex
More information about the Linuxppc-dev
mailing list