Skip to content

Fixes for pKVM NP-guest support

Quentin Perret kvmarm linux-arm-kernel lkml 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Improve error handling from check_host_shared_guest()arch/arm64/kvm/hyp/nvhe/mem_protect.c+2 -20 replies
2/2KVM: arm64: Simplify np-guest hypercallsarch/arm64/kvm/hyp/nvhe/mem_protect.c+38 -310 replies

Reviews trailers per patch

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

PatchOliver Upton
SeriesR-b
1/2
2/2

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/2] Fixes for pKVM NP-guest support

Hi all,

Here are two patches to deal with a race between the handling of permission faults and MMU notifiers with pKVM that I found by inspection. Specifically, pKVM gets thoroughly confused when it doesn't find a page mapped in its relax_perm path, while standard KVM deals with that trivially thanks to the -EAGAIN special case in user_mem_abort(). The second patch addresses the problem by simplifying the implementation of multiple pKVM hypercalls, which also has the nice side effect of improving locking by not taking the global host stage-2 lock as much.

Patches based on 6.14-rc1, tested in qemu on on Google Pixel 6.

Thanks!
Quentin

Quentin Perret (2):
KVM: arm64: Improve error handling from check_host_shared_guest()
KVM: arm64: Simplify np-guest hypercalls

 arch/arm64/kvm/hyp/nvhe/mem_protect.c | 73 +++++++++++++++------------
 1 file changed, 40 insertions(+), 33 deletions(-)
Signature · 1 line
2.48.1.502.g6dc24dfdaf-goog