Re: [PATCH 07/12] KVM: selftests: Pass the root HVA directly to nested mapping functions

From: Jim Mattson
Date: Thu Oct 09 2025 - 19:30:52 EST


On Wed, Oct 1, 2025 at 8:05 AM Yosry Ahmed <yosry.ahmed@xxxxxxxxx> wrote:
>
> From: Yosry Ahmed <yosryahmed@xxxxxxxxxx>
>
> The nested mapping functions used to create EPT mappings currently
> accept a struct vmx_pages argument, only to get the EPT root from it
> later. In preparation for generalizing these functions to work for NPTs,
> pass the EPT root HVA directly instead.
>
> Signed-off-by: Yosry Ahmed <yosry.ahmed@xxxxxxxxx>

Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>