xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] xen: modify dom0 interface for obtaining memory map
@ 2016-12-05 16:34 Juergen Gross
  2016-12-05 16:34 ` [PATCH 1/2] xen/x86: return partial memory map in case of not enough space Juergen Gross
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Juergen Gross @ 2016-12-05 16:34 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, sstabellini, wei.liu2, George.Dunlap,
	andrew.cooper3, ian.jackson, tim, jbeulich

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(-)

-- 
2.10.2


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-12-06  9:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-05 16:34 [PATCH 0/2] xen: modify dom0 interface for obtaining memory map Juergen Gross
2016-12-05 16:34 ` [PATCH 1/2] xen/x86: return partial memory map in case of not enough space Juergen Gross
2016-12-05 17:17   ` Jan Beulich
     [not found]   ` <5845AF3E020000780012541F@suse.com>
2016-12-06  7:43     ` Juergen Gross
2016-12-06  8:15       ` Jan Beulich
     [not found]       ` <584681CA020000780012577A@suse.com>
2016-12-06  8:33         ` Juergen Gross
2016-12-06  8:51           ` Jan Beulich
     [not found]           ` <58468A1202000078001257BE@suse.com>
2016-12-06  9:44             ` Juergen Gross
2016-12-06  9:51               ` Jan Beulich
2016-12-05 16:34 ` [PATCH 2/2] xen/x86: add a way to obtain the needed number of memory map entries Juergen Gross
2016-12-05 16:39 ` [PATCH 0/2] xen: modify dom0 interface for obtaining memory map Andrew Cooper
2016-12-05 16:43   ` Juergen Gross
2016-12-05 17:06     ` Andrew Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).