Skip to content

xen: modify dom0 interface for obtaining memory map

Juergen Gross xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/x86: return partial memory map in case of not enough spacexen/arch/x86/mm.c xen/include/public/memory.h+14 -107 replies
2/2xen/x86: add a way to obtain the needed number of memory map entriesxen/arch/x86/mm.c xen/include/public/memory.h+25 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] xen: modify dom0 interface for obtaining memory map

Today's interface to get the machine memory map in dom0 requires to know in advance how large the final map will be. There is however no way to either get only a part of the memory map or to ask the hypervisor about its size.

This patch set enhances the XENMEM_machine_memory_map hypercall to solve both issues by returning only a partial memory map in case the supplied buffer was too small and to return the needed number of entries if no buffer is being supplied.

Juergen Gross (2):
xen/x86: return partial memory map in case of not enough space xen/x86: add a way to obtain the needed number of memory map entries

 xen/arch/x86/mm.c           | 52 +++++++++++++++++++++++++++------------------
 xen/include/public/memory.h |  4 ++++
 2 files changed, 35 insertions(+), 21 deletions(-)
Signature · 7 lines
2.10.2


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel