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

Jim Mattson
2025-10-13T19:04:21Z

On Wed, Oct 1, 2025 at 8:06 AM Yosry Ahmed <yosry.ahmed@linux.dev> wrote:
>
> From: Yosry Ahmed <yosryahmed@google.com>
>
> 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@linux.dev>

Reviewed-by: Jim Mattson <jmattson@google.com>