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


Reply via email to