[PATCH v2 0/2] mshv: Allow mappings that overlap in uaddr

Nuno Das Neves posted 2 patches 1 month, 1 week ago
drivers/hv/mshv_root_main.c | 27 +++++++--------------------
include/uapi/linux/mshv.h   |  2 +-
2 files changed, 8 insertions(+), 21 deletions(-)
[PATCH v2 0/2] mshv: Allow mappings that overlap in uaddr
Posted by Nuno Das Neves 1 month, 1 week ago
Currently the MSHV driver rejects mappings that would overlap in
userspace. Remove this limitation as it is overly restrictive and
allowing overlap is useful for VMMs.

Before make this change, fix the region overlap checking logic
which is broken.

---
Changes in v2:
- Add a patch to fix the overlap checking [Michael Kelley]
- Move deletion of mshv_partition_region_by_uaddr() to the fix patch

---
Magnus Kulke (1):
  mshv: Allow mappings that overlap in uaddr

Nuno Das Neves (1):
  mshv: Fix create memory region overlap check

 drivers/hv/mshv_root_main.c | 27 +++++++--------------------
 include/uapi/linux/mshv.h   |  2 +-
 2 files changed, 8 insertions(+), 21 deletions(-)

-- 
2.34.1
Re: [PATCH v2 0/2] mshv: Allow mappings that overlap in uaddr
Posted by Wei Liu 1 month, 1 week ago
On Thu, Nov 06, 2025 at 02:13:29PM -0800, Nuno Das Neves wrote:
> Currently the MSHV driver rejects mappings that would overlap in
> userspace. Remove this limitation as it is overly restrictive and
> allowing overlap is useful for VMMs.
> 
> Before make this change, fix the region overlap checking logic
> which is broken.
> 
> ---
> Changes in v2:
> - Add a patch to fix the overlap checking [Michael Kelley]
> - Move deletion of mshv_partition_region_by_uaddr() to the fix patch
> 
> ---
> Magnus Kulke (1):
>   mshv: Allow mappings that overlap in uaddr
> 
> Nuno Das Neves (1):
>   mshv: Fix create memory region overlap check

Applied to hyperv-next. Thanks.

> 
>  drivers/hv/mshv_root_main.c | 27 +++++++--------------------
>  include/uapi/linux/mshv.h   |  2 +-
>  2 files changed, 8 insertions(+), 21 deletions(-)
> 
> -- 
> 2.34.1
>