Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1370740 > unrolled thread

[PATCH 10/17] kvm-arm: arm64: Introduce hyp page table empty checks

Started bySuzuki K Poulose <suzuki.poulose@arm.com>
First post2016-04-04 18:30 +0200
Last post2016-04-08 15:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 10/17] kvm-arm: arm64: Introduce hyp page table empty checks Suzuki K Poulose <suzuki.poulose@arm.com> - 2016-04-04 18:30 +0200
    Re: [PATCH 10/17] kvm-arm: arm64: Introduce hyp page table empty  checks Christoffer Dall <christoffer.dall@linaro.org> - 2016-04-08 15:20 +0200

#1370740 — [PATCH 10/17] kvm-arm: arm64: Introduce hyp page table empty checks

FromSuzuki K Poulose <suzuki.poulose@arm.com>
Date2016-04-04 18:30 +0200
Subject[PATCH 10/17] kvm-arm: arm64: Introduce hyp page table empty checks
Message-ID<rkfy2-5Pj-17@gated-at.bofh.it>
Introduce hyp_pxx_table_empty helpers for checking whether
a given table entry is empty. This will be used explicitly
once we switch to explicit routines for hyp page table walk.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
---
 arch/arm64/include/asm/kvm_mmu.h |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/include/asm/kvm_mmu.h b/arch/arm64/include/asm/kvm_mmu.h
index e3f53e3..edf3c62 100644
--- a/arch/arm64/include/asm/kvm_mmu.h
+++ b/arch/arm64/include/asm/kvm_mmu.h
@@ -249,6 +249,20 @@ static inline bool kvm_page_empty(void *ptr)
 #endif
 
 
+#define hyp_pte_table_empty(ptep) kvm_page_empty(ptep)
+
+#ifdef __PAGETABLE_PMD_FOLDED
+#define hyp_pmd_table_empty(pmdp) (0)
+#else
+#define hyp_pmd_table_empty(pmdp) kvm_page_empty(pmdp)
+#endif
+
+#ifdef __PAGETABLE_PUD_FOLDED
+#define hyp_pud_table_empty(pudp) (0)
+#else
+#define hyp_pud_table_empty(pudp) kvm_page_empty(pudp)
+#endif
+
 struct kvm;
 
 #define kvm_flush_dcache_to_poc(a,l)	__flush_dcache_area((a), (l))
-- 
1.7.9.5

[toc] | [next] | [standalone]


#1374230 — Re: [PATCH 10/17] kvm-arm: arm64: Introduce hyp page table empty checks

FromChristoffer Dall <christoffer.dall@linaro.org>
Date2016-04-08 15:20 +0200
SubjectRe: [PATCH 10/17] kvm-arm: arm64: Introduce hyp page table empty checks
Message-ID<rlEul-4hr-9@gated-at.bofh.it>
In reply to#1370740
On Mon, Apr 04, 2016 at 05:26:10PM +0100, Suzuki K Poulose wrote:
> Introduce hyp_pxx_table_empty helpers for checking whether
> a given table entry is empty. This will be used explicitly
> once we switch to explicit routines for hyp page table walk.
> 
> Cc: Marc Zyngier <marc.zyngier@arm.com>
> Cc: Christoffer Dall <christoffer.dall@linaro.org>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web