Re: [PATCH 11/12] KVM: selftests: Refactor generic nested mapping outside VMX code

From: Jim Mattson

Date: Mon Oct 13 2025 - 15:04:21 EST


On Wed, Oct 1, 2025 at 8:06 AM Yosry Ahmed <yosry.ahmed@xxxxxxxxx> wrote:
>
> From: Yosry Ahmed <yosryahmed@xxxxxxxxxx>
>
> Now that the nested mapping functions in vmx.c are all generic except
> for nested_ept_create_pte(), move them all out into a new nested_map.c
> lib file and expose nested_ept_create_pte() in vmx.h. This allows
> reusing the code for NPT in following changes.
>
> While we're at it, merge nested_pg_map() and __nested_pg_map(), as the
> former is unused, and make sure all functions not exposed in the header
> are static.
>
> Signed-off-by: Yosry Ahmed <yosry.ahmed@xxxxxxxxx>

Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>