diff options
author | Alexander Graf <agraf@suse.de> | 2010-06-30 13:18:45 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 07:47:27 (GMT) |
commit | 7741909bf19d9437a6aa3559c0470a640f637dce (patch) | |
tree | 023e6930fb85730c3f39b6186e19e88412ed037e /arch/powerpc/platforms | |
parent | 84754cd8fca66ed476585eabad68cacf42834199 (diff) | |
download | linux-fsl-qoriq-7741909bf19d9437a6aa3559c0470a640f637dce.tar.xz |
KVM: PPC: Add generic hpte management functions
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.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/powerpc/platforms')
0 files changed, 0 insertions, 0 deletions