aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-06-30 15:18:45 +0200
committerAvi Kivity <avi@redhat.com>2010-08-01 10:47:27 +0300
commit7741909bf19d9437a6aa3559c0470a640f637dce (patch)
tree023e6930fb85730c3f39b6186e19e88412ed037e /arch/powerpc/kvm/book3s.c
parent84754cd8fca66ed476585eabad68cacf42834199 (diff)
downloadkernel_samsung_smdk4412-7741909bf19d9437a6aa3559c0470a640f637dce.zip
kernel_samsung_smdk4412-7741909bf19d9437a6aa3559c0470a640f637dce.tar.gz
kernel_samsung_smdk4412-7741909bf19d9437a6aa3559c0470a640f637dce.tar.bz2
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/kvm/book3s.c')
0 files changed, 0 insertions, 0 deletions