]> git.ipfire.org Git - thirdparty/linux.git/commit
mshv: Introduce new hypercall to map stats page for L1VH partitions
authorJinank Jain <jinankjain@linux.microsoft.com>
Fri, 10 Oct 2025 21:55:51 +0000 (14:55 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 15 Nov 2025 06:18:16 +0000 (06:18 +0000)
commitd62313bdf5961b5f815f0b212f029cf146a8a804
tree47226884bb881facd67b326c39c96a4ced4298c5
parent19c515c27cee3bbba7e70a4d84f4b7e4d8d1cd7e
mshv: Introduce new hypercall to map stats page for L1VH partitions

Introduce HVCALL_MAP_STATS_PAGE2 which provides a map location (GPFN)
to map the stats to. This hypercall is required for L1VH partitions,
depending on the hypervisor version. This uses the same check as the
state page map location; mshv_use_overlay_gpfn().

Add mshv_map_vp_state_page() helpers to use this new hypercall or the
old one depending on availability.

For unmapping, the original HVCALL_UNMAP_STATS_PAGE works for both
cases.

Signed-off-by: Jinank Jain <jinankjain@linux.microsoft.com>
Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <easwar.hariharan@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_root.h
drivers/hv/mshv_root_hv_call.c
drivers/hv/mshv_root_main.c
include/hyperv/hvgdk_mini.h
include/hyperv/hvhdk_mini.h