lkml.org 
[lkml]   [2020]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] KVM: arm64: Failback on unsupported huge pages
Date
Guest fails to boot when the memory is backed up by hugetlbfs regions,
which correspond to contiguous PMDs or PTEs. For example, the guest
fails to boot when its memory is backed up by 64KB hugetlbfs pages.

The first two patches are sorts of cleanup, not introducing any logical
changes. The last patch resolves the issue by fail the unsupported huge
page sizes back to nearby one. Ideally, we teach the stage-2 page table
to use contiguous mapping in this case, but the page-table walker doesn't
it well and needs some sort of reworks and I will do that in the future.

Gavin Shan (3):
KVM: arm64: Check if 52-bits PA is enabled
KVM: arm64: Don't map PUD huge page if it's not available
KVM: arm64: Failback on unsupported huge page sizes

arch/arm64/kvm/hyp/pgtable.c | 10 ++++++----
arch/arm64/kvm/mmu.c | 12 +++++++++++-
2 files changed, 17 insertions(+), 5 deletions(-)

--
2.23.0

\
 
 \ /
  Last update: 2020-10-25 02:29    [W:0.070 / U:1.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site