Skip to content

MSHV: Redesign memory deposit logic

Mukesh R linux-hyperv lkml sashiko-reviews 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

o Enhance comments
o In case of contiguous and failure, don't goto err_free_dep_pages but just return also. It should not happen, but if it does, hypevisor will throw error.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mshv: Rename memory deposit memory functions to _olddrivers/hv/hv_proc.c+16 -70 replies
2/3mshv: Redesign hypervisor memory deposit logicdrivers/hv/hv_proc.c drivers/hv/mshv_root_hv_call.c include/asm-generic/mshyperv.h+175 -342 replies
3/3mshv: Remove unused *_old memory deposit functionsdrivers/hv/hv_proc.c+0 -1290 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMichael KelleySouradeep Chakrabarti
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/3] MSHV: Redesign memory deposit logic

This small series redesigns the memory deposit logic when Linux runs on Hyper-V hypervisor as a privileged VM, the second patch explains why. The series is split in three patches, the first patch renames the functions to _old and that makes the 2 main patch much easier and nicer to review. Last patch just removes the *_old functions from first patch.

Thanks,
-Mukesh

V2:
o Enhance comments
o In case of contiguous and failure, don't goto err_free_dep_pages but just return also. It should not happen, but if it does, hypevisor will throw error.

V1:
o Remove hv_alloc_contig_pages() and make contiguous allocation part of hv_alloc_dep_pages(), thus getting rid of the kmalloc.
o Instead of stubbing out functions, rename them to *_old.

Mukesh R (3):
mshv: Rename memory deposit memory functions to _old
mshv: Redesign hypervisor memory deposit logic
mshv: Remove unused *_old memory deposit functions

 drivers/hv/hv_proc.c           | 246 +++++++++++++++++++--------------
 drivers/hv/mshv_root_hv_call.c |  10 +-
 include/asm-generic/mshyperv.h |   5 -
 3 files changed, 141 insertions(+), 120 deletions(-)
Signature · 1 line
2.51.2.vfs.0.1