summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2019-02-02 12:14:03 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2019-02-07 11:44:47 +0000
commit309a205688060fbb000e9402078cf53cebde0793 (patch)
treed5c5c89cf8709672089046a96d52a0667576a3d0
parentab2d5eb03dbb7b37a1c6356686fb48626ab0c93e (diff)
downloadtalos-obmc-linux-309a205688060fbb000e9402078cf53cebde0793.tar.gz
talos-obmc-linux-309a205688060fbb000e9402078cf53cebde0793.zip
arm: KVM: Add missing kvm_stage2_has_pmd() helper
Fixup 32bit by providing the now required helper. Cc: Suzuki Poulose <suzuki.poulose@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rw-r--r--arch/arm/include/asm/stage2_pgtable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/stage2_pgtable.h b/arch/arm/include/asm/stage2_pgtable.h
index c4b1d4fb1797..de2089501b8b 100644
--- a/arch/arm/include/asm/stage2_pgtable.h
+++ b/arch/arm/include/asm/stage2_pgtable.h
@@ -76,4 +76,9 @@ static inline bool kvm_stage2_has_pud(struct kvm *kvm)
#define S2_PMD_MASK PMD_MASK
#define S2_PMD_SIZE PMD_SIZE
+static inline bool kvm_stage2_has_pmd(struct kvm *kvm)
+{
+ return true;
+}
+
#endif /* __ARM_S2_PGTABLE_H_ */
OpenPOWER on IntegriCloud