Skip to content

KVM: arm64: fix pKVM mapping cache corner cases

Bradley Morgan kvmarm linux-arm-kernel lkml stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 12 repliesIn review
  2. v22 patches 5 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- Send as a standalone series with a cover letter.
- Store the pKVM cacheable bit in nr_pages instead of adding a bool.
- Drop stable from patch 1.
- Add patch 3 for dirty logging permission faults.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: skip pKVM cache flushes for non cacheable mappingsarch/arm64/kvm/pkvm.c+41 -108 replies
2/3KVM: arm64: top up pKVM mapping cache for permission faultsarch/arm64/kvm/mmu.c+22 -70 replies
3/3KVM: arm64: top up stage 2 memcache for dirty logging faultsarch/arm64/kvm/mmu.c+4 -54 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] KVM: arm64: fix pKVM mapping cache corner cases

This is a standalone v3.

Patch 1 fixes pKVM cache maintenance for non cacheable mappings without growing struct pkvm_mapping.

Patch 2 fixes a pKVM mapping cache topup bug on permission faults that replace page mappings with a PMD mapping.

Patch 3 fixes the generic dirty logging case where a permission fault can still need a page table allocation to split a block mapping.

Changes in v3:
- Send as a standalone series with a cover letter.
- Store the pKVM cacheable bit in nr_pages instead of adding a bool.
- Drop stable from patch 1.
- Add patch 3 for dirty logging permission faults.

Changes in v2:
- Add patch 2 for the pKVM permission fault mapping cache bug.

Bradley Morgan (3):
KVM: arm64: skip pKVM cache flushes for non cacheable mappings
KVM: arm64: top up pKVM mapping cache for permission faults
KVM: arm64: top up stage 2 memcache for dirty logging faults

 arch/arm64/kvm/mmu.c  | 32 +++++++++++++++++++--------
 arch/arm64/kvm/pkvm.c | 51 ++++++++++++++++++++++++++++++++++---------
 2 files changed, 64 insertions(+), 19 deletions(-)
Signature · 1 line
2.53.0