Skip to content

RFC KVM: Support PUD hugepages at stage 2

Punit Agrawal kvmarm linux-arm-kernel lkml 1 version Applied

Status from this message: I queued this patch. I'll leave the KVM bits to Marc/Christoffer.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4arm64: Correct type for PUD macrosarch/arm64/include/asm/pgtable-hwdef.h+3 -32 replies
2/4KVM: arm64: Support dirty page tracking for PUD hugepagesarch/arm/include/asm/kvm_mmu.h arch/arm64/include/asm/kvm_mmu.h virt/kvm/arm/mmu.c+25 -32 replies
3/4KVM: arm/arm64: Refactor Stage2 PMD hugepages supportvirt/kvm/arm/mmu.c+15 -50 replies
4/4KVM: arm64: Add support for PUD hugepages at stage 2arch/arm/include/asm/kvm_mmu.h arch/arm/include/asm/pgtable-3level.h arch/arm64/include/asm/kvm_mmu.h +3 more+99 -102 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchChristoffer Dall
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/4] KVM: Support PUD hugepages at stage 2

Hi,

This patchset adds support for PUD hugepages at stage 2. This feature is useful on cores that have support for large sized TLB mappings (e.g., 1GB for 4K granule).

The patchset is based on v4.15-rc7 and depends on a fix sent out earlier[0]. There patchset will conflict with Suzuki's work to dynamically set IPA size. I'll work with Suzuki to resolve this depending on the order the features are merged.

The patches have been functionally tested on an A57 based system. To quantify the benefit, the patches need to be evaluated on cores supporting larger sized TLB mappings.

I'm sending the patchset as RFC to get feedback on the code as well as allow evaluation on real systems.

Thanks,
Punit

[0] https://patchwork.kernel.org/patch/10145339/

Punit Agrawal (4):
arm64: Correct type for PUD macros
KVM: arm64: Support dirty page tracking for PUD hugepages
KVM: arm/arm64: Refactor Stage2 PMD hugepages support
KVM: arm64: Add support for PUD hugepages at stage 2

 arch/arm/include/asm/kvm_mmu.h         | 19 +++++++
 arch/arm/include/asm/pgtable-3level.h  |  2 +
 arch/arm64/include/asm/kvm_mmu.h       | 29 +++++++++++
 arch/arm64/include/asm/pgtable-hwdef.h |  8 +--
 arch/arm64/include/asm/pgtable.h       |  4 ++
 virt/kvm/arm/mmu.c                     | 91 +++++++++++++++++++++++++++++-----
 6 files changed, 137 insertions(+), 16 deletions(-)
Signature · 1 line
2.15.1