From: Paul Mackerras Date: Sat, 22 Jun 2013 07:14:48 +0000 (+1000) Subject: KVM: PPC: Book3S PR: Don't keep scanning HPTEG after we find a match X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~22^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ed1485f65f0eb17aa7b649d5abe0b011b92f718;p=pandora-kernel.git KVM: PPC: Book3S PR: Don't keep scanning HPTEG after we find a match The loop in kvmppc_mmu_book3s_64_xlate() that looks up a translation in the guest hashed page table (HPT) keeps going if it finds an HPTE that matches but doesn't allow access. This is incorrect; it is different from what the hardware does, and there should never be more than one matching HPTE anyway. This fixes it to stop when any matching HPTE is found. Signed-off-by: Paul Mackerras Signed-off-by: Alexander Graf --- Reading git-diff-tree failed