diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2017-01-30 21:21:38 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-01-31 19:11:45 +1100 |
commit | ba9b399aee6fb70cbe988f0750d6dd9f6677293b (patch) | |
tree | 4ee60095d95f207a1d9e07dca7d8b5bc8081a262 | |
parent | dbcbfee0c81c7938e40d7d6bc659a5191f490b50 (diff) | |
download | linux-stable-ba9b399aee6fb70cbe988f0750d6dd9f6677293b.tar.gz linux-stable-ba9b399aee6fb70cbe988f0750d6dd9f6677293b.tar.bz2 linux-stable-ba9b399aee6fb70cbe988f0750d6dd9f6677293b.zip |
powerpc/64: Export pgtable_cache and pgtable_cache_add for KVM
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>
-rw-r--r-- | arch/powerpc/mm/init-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/mm/init-common.c b/arch/powerpc/mm/init-common.c index a175cd82ae8c..2be5dc242832 100644 --- a/arch/powerpc/mm/init-common.c +++ b/arch/powerpc/mm/init-common.c @@ -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) { |