Skip to content

mini-os: some memory map updates for PVH

Juergen Gross xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 6 repliesIn review
  2. v24 patches 3 repliesSuperseded
  3. v13 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- minor comment for patch 3 addressed

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mini-os: take newest version of arch-x86/hvm/start_info.hinclude/xen/arch-x86/hvm/start_info.h+62 -10 replies
2/4mini-os: prefer memory map via start_info for PVHarch/x86/mm.c e820.c include/e820.h+35 -00 replies
3/4mini-os: fix number of pages for PVHarch/x86/mm.c balloon.c e820.c +2 more+65 -302 replies
4/4mini-os: fix bug in ballooning on PVHballoon.c+1 -10 replies

Reviews trailers per patch

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

PatchSamuel Thibault
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/4] mini-os: some memory map updates for PVH

Do some memory map related changes/fixes for PVH mode:

- Prefer the memory map delivered via start-info over the one obtained from the hypervisor. This is a prerequisite for Xenstore-stubdom live-update with rising the memory limit.

- Fix a bug related to ballooning in PVH mode: PVH Xenstore-stubdom can't read its target memory size from Xenstore, as this introduces a chicken-and-egg problem. The memory size read from the hypervisor OTOH includes additional "special" pages marked as reserved in the memory map. Those pages need to be subtracted from the read size.

- Fix a bug in ballooning code in PVH mode when using memory beyond a RAM hole in the memory map

Changes in V3:
- minor comment for patch 3 addressed

Changes in V2:
- added patch 4
- addressed comment regarding patch 3

Juergen Gross (4):
mini-os: take newest version of arch-x86/hvm/start_info.h
mini-os: prefer memory map via start_info for PVH
mini-os: fix number of pages for PVH
mini-os: fix bug in ballooning on PVH

 arch/x86/mm.c                         | 23 ++++----
 balloon.c                             | 18 ++----
 e820.c                                | 83 ++++++++++++++++++++++++---
 include/e820.h                        |  6 ++
 include/x86/arch_mm.h                 |  2 +
 include/xen/arch-x86/hvm/start_info.h | 63 +++++++++++++++++++-
 6 files changed, 163 insertions(+), 32 deletions(-)
Signature · 1 line
2.35.3