All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] populate/unpopulate memory when domain on static
@ 2022-03-30  9:36 Penny Zheng
  2022-03-30  9:36 ` [PATCH v1 1/5] xen/arm: field "flags" to cover all internal CDF_XXX Penny Zheng
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Penny Zheng @ 2022-03-30  9:36 UTC (permalink / raw)
  To: xen-devel
  Cc: wei.chen, henry.wang, Penny Zheng, Stefano Stabellini,
	Julien Grall, Bertrand Marquis, Volodymyr Babchuk, Andrew Cooper,
	George Dunlap, Jan Beulich, Wei Liu

Today when a domain unpopulates the memory on runtime, they will always
hand the memory over to the heap allocator. And it will be a problem if domain
on static allocation.Since guest RAM for domain on static allocation is
static memory, which is pre-reserved through domain congifuration, it shall
never go back to heap.

This patch serie intends to fix this issue, by keeping page allocated and
storing it in page list when unpopulating memory, and retrieving page from page
list when populating memory.

Penny Zheng (5):
  xen/arm: field "flags" to cover all internal CDF_XXX
  xen/arm: introduce CDF_staticmem
  xen/arm: unpopulate memory when domain on static allocation
  xen/arm: retrieve reserved pages on populate_physmap
  xen/arm: no need to store pages in resv_page_list when domain is
    directly mapped

 xen/arch/arm/domain.c             |  3 ++-
 xen/arch/arm/domain_build.c       |  5 +++-
 xen/arch/arm/include/asm/domain.h |  7 +++--
 xen/common/domain.c               |  4 +++
 xen/common/memory.c               | 45 ++++++++++++++++++++++++++++++-
 xen/include/xen/domain.h          |  2 ++
 xen/include/xen/sched.h           |  6 +++++
 7 files changed, 67 insertions(+), 5 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2022-04-04 11:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-30  9:36 [PATCH 0/5] populate/unpopulate memory when domain on static Penny Zheng
2022-03-30  9:36 ` [PATCH v1 1/5] xen/arm: field "flags" to cover all internal CDF_XXX Penny Zheng
2022-04-01 18:02   ` Julien Grall
2022-03-30  9:36 ` [PATCH v1 2/5] xen/arm: introduce CDF_staticmem Penny Zheng
2022-04-01 18:06   ` Julien Grall
2022-03-30  9:36 ` [PATCH v1 3/5] xen/arm: unpopulate memory when domain on static allocation Penny Zheng
2022-03-30  9:52   ` Jan Beulich
2022-03-31  6:13     ` Penny Zheng
2022-03-31  7:05       ` Jan Beulich
2022-03-31 10:30         ` Penny Zheng
2022-04-01 18:53           ` Julien Grall
2022-04-02 10:16             ` Penny Zheng
2022-04-04 11:33           ` Jan Beulich
2022-04-01 18:10     ` Julien Grall
2022-03-30  9:36 ` [PATCH v1 4/5] xen/arm: retrieve reserved pages on populate_physmap Penny Zheng
2022-03-30  9:58   ` Jan Beulich
2022-03-31  6:53     ` Penny Zheng
2022-03-30  9:36 ` [PATCH v1 5/5] xen/arm: no need to store pages in resv_page_list when domain is directly mapped Penny Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.