[PATCH 0/2] Fixes for pKVM NP-guest support
Oliver Upton
oliver.upton at linux.dev
Fri Feb 7 09:58:56 PST 2025
On Fri, Feb 07, 2025 at 02:54:36PM +0000, Quentin Perret wrote:
> 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.
Looks reasonable to me, the locking improvements are certainly an added
bonus.
Reviewed-by: Oliver Upton <oliver.upton at linux.dev>
--
Thanks,
Oliver
More information about the linux-arm-kernel
mailing list