public inbox for linux-hyperv@vger.kernel.org
 help / color / mirror / Atom feed
From: Mukesh R <mrathor@linux.microsoft.com>
To: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>,
	kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org,
	decui@microsoft.com, longli@microsoft.com
Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/4] Improve Hyper-V memory deposit error handling
Date: Tue, 3 Feb 2026 15:03:45 -0800	[thread overview]
Message-ID: <617915e0-f63b-2f0d-e285-2c968a992486@linux.microsoft.com> (raw)
In-Reply-To: <177005499596.120041.5908089206606113719.stgit@skinsburskii-cloud-desktop.internal.cloudapp.net>

On 2/2/26 09:58, Stanislav Kinsburskii wrote:
> This series extends the MSHV driver to properly handle additional
> memory-related error codes from the Microsoft Hypervisor by depositing
> memory pages when needed.
> 
> Currently, when the hypervisor returns HV_STATUS_INSUFFICIENT_MEMORY
> during partition creation, the driver calls hv_call_deposit_pages() to
> provide the necessary memory. However, there are other memory-related
> error codes that indicate the hypervisor needs additional memory
> resources, but the driver does not attempt to deposit pages for these
> cases.
> 
> This series introduces a dedicated helper function macro to identify all
> memory-related error codes (HV_STATUS_INSUFFICIENT_MEMORY,
> HV_STATUS_INSUFFICIENT_BUFFERS, HV_STATUS_INSUFFICIENT_DEVICE_DOMAINS, and
> HV_STATUS_INSUFFICIENT_ROOT_MEMORY) and ensures the driver attempts to
> deposit pages for all of them via new hv_deposit_memory() helper.
> 
> With these changes, partition creation becomes more robust by handling
> all scenarios where the hypervisor requires additional memory deposits.
> 
> v2:
> - Rename hv_result_oom() into hv_result_needs_memory()
> 
> ---
> 
> Stanislav Kinsburskii (4):
>        mshv: Introduce hv_result_needs_memory() helper function
>        mshv: Introduce hv_deposit_memory helper functions
>        mshv: Handle insufficient contiguous memory hypervisor status
>        mshv: Handle insufficient root memory hypervisor statuses
> 
> 
>   drivers/hv/hv_common.c         |    3 ++
>   drivers/hv/hv_proc.c           |   54 +++++++++++++++++++++++++++++++++++---
>   drivers/hv/mshv_root_hv_call.c |   45 +++++++++++++-------------------
>   drivers/hv/mshv_root_main.c    |    5 +---
>   include/asm-generic/mshyperv.h |   13 +++++++++
>   include/hyperv/hvgdk_mini.h    |   57 +++++++++++++++++++++-------------------
>   include/hyperv/hvhdk_mini.h    |    2 +
>   7 files changed, 119 insertions(+), 60 deletions(-)
> 

for the whole series:

Reviewed-by: Mukesh R <mrathor@linux.microsoft.com>


      parent reply	other threads:[~2026-02-03 23:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-02 17:58 [PATCH v2 0/4] Improve Hyper-V memory deposit error handling Stanislav Kinsburskii
2026-02-02 17:58 ` [PATCH v2 1/4] mshv: Introduce hv_result_needs_memory() helper function Stanislav Kinsburskii
2026-02-05 17:58   ` Anirudh Rayabharam
2026-02-02 17:59 ` [PATCH v2 2/4] mshv: Introduce hv_deposit_memory helper functions Stanislav Kinsburskii
2026-02-03 23:01   ` Mukesh R
2026-02-05 18:01   ` Anirudh Rayabharam
2026-02-02 17:59 ` [PATCH v2 3/4] mshv: Handle insufficient contiguous memory hypervisor status Stanislav Kinsburskii
2026-02-05 18:03   ` Anirudh Rayabharam
2026-02-02 17:59 ` [PATCH v2 4/4] mshv: Handle insufficient root memory hypervisor statuses Stanislav Kinsburskii
2026-02-05 18:07   ` Anirudh Rayabharam
2026-02-05 18:36     ` Stanislav Kinsburskii
2026-02-03 23:03 ` Mukesh R [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=617915e0-f63b-2f0d-e285-2c968a992486@linux.microsoft.com \
    --to=mrathor@linux.microsoft.com \
    --cc=decui@microsoft.com \
    --cc=haiyangz@microsoft.com \
    --cc=kys@microsoft.com \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longli@microsoft.com \
    --cc=skinsburskii@linux.microsoft.com \
    --cc=wei.liu@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox