aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kvm/book3s_hv_builtin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c b/arch/powerpc/kvm/book3s_hv_builtin.c
index b9615ba5b083..4fdc27c80f4c 100644
--- a/arch/powerpc/kvm/book3s_hv_builtin.c
+++ b/arch/powerpc/kvm/book3s_hv_builtin.c
@@ -163,6 +163,12 @@ void __init kvm_cma_reserve(void)
163 unsigned long align_size; 163 unsigned long align_size;
164 struct memblock_region *reg; 164 struct memblock_region *reg;
165 phys_addr_t selected_size = 0; 165 phys_addr_t selected_size = 0;
166
167 /*
168 * We need CMA reservation only when we are in HV mode
169 */
170 if (!cpu_has_feature(CPU_FTR_HVMODE))
171 return;
166 /* 172 /*
167 * We cannot use memblock_phys_mem_size() here, because 173 * We cannot use memblock_phys_mem_size() here, because
168 * memblock_analyze() has not been called yet. 174 * memblock_analyze() has not been called yet.