]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
powerpc/64: Export pgtable_cache and pgtable_cache_add for KVM
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 30 Jan 2017 10:21:38 +0000 (21:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jan 2017 08:11:45 +0000 (19:11 +1100)
This exports the pgtable_cache array and the pgtable_cache_add
function so that HV KVM can use them for allocating radix page
tables for guests.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/init-common.c

index a175cd82ae8c5f2807508e5a2ee2daf34e7fc05a..2be5dc24283289a9bd1222d4a5b4f63f9ac33037 100644 (file)
@@ -41,6 +41,7 @@ static void pmd_ctor(void *addr)
 }
 
 struct kmem_cache *pgtable_cache[MAX_PGTABLE_INDEX_SIZE];
+EXPORT_SYMBOL_GPL(pgtable_cache);      /* used by kvm_hv module */
 
 /*
  * Create a kmem_cache() for pagetables.  This is not used for PTE
@@ -82,7 +83,7 @@ void pgtable_cache_add(unsigned shift, void (*ctor)(void *))
        pgtable_cache[shift - 1] = new;
        pr_debug("Allocated pgtable cache for order %d\n", shift);
 }
-
+EXPORT_SYMBOL_GPL(pgtable_cache_add);  /* used by kvm_hv module */
 
 void pgtable_cache_init(void)
 {