Re: [PATCH v5 0/5] mshv: Fixes for stats and vp state page mappings

From: Wei Liu

Date: Mon Oct 13 2025 - 15:00:15 EST


On Fri, Oct 10, 2025 at 02:55:46PM -0700, Nuno Das Neves wrote:
> There are some differences in how L1VH partitions must map stats and vp
> state pages, some of which are due to differences across hypervisor
> versions. Detect and handle these cases.
>
> Patch 1:
> Fix for the logic of when to map the vp stats page for the root scheduler.
>
> Patch 2-3:
> Add HVCALL_GET_PARTITION_PROPERTY_EX and use it to query "vmm capabilities" on
> module init.
>
> Patches 4-5:
> Check a feature bit in vmm capabilities, to take a new code path for mapping
> stats and vp state pages. In this case, the stats and vp state pages must be
> allocated by Linux, and a new hypercall HVCALL_MAP_VP_STATS_PAGE2 must be used
> to map the stats page.

Applied to hyperv-next. Thanks.