[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/5] populate/unpopulate memory when domain on static


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Penny Zheng <Penny.Zheng@xxxxxxx>
  • Date: Wed, 30 Mar 2022 17:36:12 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XPjXwM6GeF4ktNtts2yB4XQmLeHHI2pEJS10Py2OAn4=; b=e6WAQN5BcfrKmJ1UNP99ZFnXVh6ZBaRY0R6nnDVdhnHQ0J2scZx655rAC04mzquP9CvZSbaz3fIT0zI7mJbvjMK2FpUx/qiT03FZAOdQUoK3k8SYRqWxh4dMLt9KiqTpJsAdUokhBW7UWw0Nw1vHD4piZk4oDy3kBsBwbX5rietmV/fZgvIc9H8pnEl2DNaZzsYxjK9zSac+oBOAnDBOZmHo0aq/EIzavwFUFYJ2hSNEFW9ppm8z4lz6P+LEZAerCDI7g1EO+fu8EkoXMAwhNOCotj2c7iee37pbxzvduk+rcOlm4NPUqdERS+hwGnLncte87BiCr4WX0/rQlLFW8A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkpr9FskLDfUqYDDAYfR3tAu9e/gibjC3F3r+yuAY01lWnIv4MGS2QvWpfgowXEVi8whXyDYhS3nxarkWsGt/6djZ1XA1ahdp1L414P968bF6DiYojxs6k+TIZwSZJamW+v2aabFxGbmkXEwXwhuhWHsLhO/M+8ZEITjdFwZxy/lmgOqX+XyctGnYIn6D6HTB3TeJ608JzXwHO0J+n152zOjyOPz2GXu9D6145n+A/UIfEWmEXLF6G8GTR4d6lLrstzfeid+kyl2GlkS0MlPh9NCXUgGFb7enMXdBoPDc/8EzaZHFbYYkHPrSxDJu8GK5ljOfaGIuLo+VCG8/9Zugw==
  • Cc: <wei.chen@xxxxxxx>, <henry.wang@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, "Jan Beulich" <jbeulich@xxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Wed, 30 Mar 2022 09:37:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true

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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.