]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mshv: Handle insufficient contiguous memory hypervisor status
authorStanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Thu, 5 Feb 2026 18:42:21 +0000 (18:42 +0000)
committerWei Liu <wei.liu@kernel.org>
Thu, 19 Feb 2026 06:39:16 +0000 (06:39 +0000)
commitcf82dd5ea95815e6c0612b61118d2358ef5c05b0
tree6c0999afd6daf6fe9044edb7d0c162210a0f6445
parentede54383e646821b499873c1caf2dd97551da8eb
mshv: Handle insufficient contiguous memory hypervisor status

The HV_STATUS_INSUFFICIENT_CONTIGUOUS_MEMORY status indicates that the
hypervisor lacks sufficient contiguous memory for its internal allocations.

When this status is encountered, allocate and deposit
HV_MAX_CONTIGUOUS_ALLOCATION_PAGES contiguous pages to the hypervisor.
HV_MAX_CONTIGUOUS_ALLOCATION_PAGES is defined in the hypervisor headers, a
deposit of this size will always satisfy the hypervisor's requirements.

Signed-off-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Reviewed-by: Mukesh R <mrathor@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_common.c
drivers/hv/hv_proc.c
include/hyperv/hvgdk_mini.h
include/hyperv/hvhdk_mini.h