Skip to content

KVM: arm64: Cleanups for managing SMCCC filter maple tree

Oliver Upton kvm kvmarm 1 version Applied

Status from this message: Applied to kvmarm/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Add a predicate for testing if SMCCC filter is configuredarch/arm64/kvm/hypercalls.c+6 -10 replies
2/3KVM: arm64: Only insert reserved ranges when SMCCC filter is usedarch/arm64/kvm/hypercalls.c+16 -60 replies
3/3KVM: arm64: Use mtree_empty() to determine if SMCCC filter configuredarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/hypercalls.c+2 -90 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc Zyngier
SeriesR-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] KVM: arm64: Cleanups for managing SMCCC filter maple tree

Small series to clean up the way KVM manages the maple tree representation of the SMCCC filter, only allocating nodes in the tree if the SMCCC filter is used.

The other ugly bit that this fixes is the error path when 'reserved' ranges cannot be inserted into the maple tree, instead returning an error to userspace.

Oliver Upton (3):
KVM: arm64: Add a predicate for testing if SMCCC filter is configured
KVM: arm64: Only insert reserved ranges when SMCCC filter is used
KVM: arm64: Use mtree_empty() to determine if SMCCC filter configured

 arch/arm64/include/asm/kvm_host.h |  4 +---
 arch/arm64/kvm/hypercalls.c       | 34 ++++++++++++++++++++-----------
 2 files changed, 23 insertions(+), 15 deletions(-)

base-commit: 6465e260f48790807eef06b583b38ca9789b6072

Signature · 1 line
2.42.0.609.gbb76f46606-goog