From: Bharat Bhushan <bharat.bhushan@xxxxxxxxxxxxx> First patch is a typo fix where book3e define _PAGE_LENDIAN while it should be defined as _PAGE_ENDIAN. This seems to show that this is never exercised :-) Second and third patch is to allow guest controlling "G"-Guarded and "E"-Endian TLB attributes respectively. Fourth and fifth patch is moving functions/logic in common code so they can be used on booke also. Sixth patch is actually setting caching attributes (TLB.WIMGE) using corresponding Linux pte. v2->v3 - now lookup_linux_pte() only have pte search logic and it does not set any access flags in pte. There is already a function for setting access flag which will be called explicitly where needed. On booke we only need to search for pte to get WIMG. v1->v2 - Earlier caching attributes (WIMGE) were set based of page is RAM or not But now we get these attributes from corresponding Linux PTE. Bharat Bhushan (6): powerpc: book3e: _PAGE_LENDIAN must be _PAGE_ENDIAN kvm: powerpc: allow guest control "E" attribute in mas2 kvm: powerpc: allow guest control "G" attribute in mas2 powerpc: move linux pte/hugepte search to more generic file kvm: powerpc: keep only pte search logic in lookup_linux_pte kvm: powerpc: use caching attributes as per linux pte arch/powerpc/include/asm/kvm_host.h | 2 +- arch/powerpc/include/asm/pgtable-ppc64.h | 36 ------------------ arch/powerpc/include/asm/pgtable.h | 60 ++++++++++++++++++++++++++++++ arch/powerpc/include/asm/pte-book3e.h | 2 +- arch/powerpc/kvm/book3s_hv_rm_mmu.c | 38 ++++++------------- arch/powerpc/kvm/booke.c | 2 +- arch/powerpc/kvm/e500.h | 10 +++-- arch/powerpc/kvm/e500_mmu_host.c | 36 ++++++++++------- 8 files changed, 102 insertions(+), 84 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html