[Xen-devel] [PATCH 0/4] Don't allocate dom->p2m_host[] for translated domains

Andrew Cooper posted 4 patches 4 years, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20191217201550.15864-1-andrew.cooper3@citrix.com
stubdom/grub/kexec.c         |  36 ++++------
tools/libxc/include/xc_dom.h |  24 +++----
tools/libxc/xc_dom_arm.c     |  30 --------
tools/libxc/xc_dom_boot.c    |   6 +-
tools/libxc/xc_dom_core.c    |  43 +----------
tools/libxc/xc_dom_x86.c     | 166 ++++++++++++++++++++++---------------------
6 files changed, 114 insertions(+), 191 deletions(-)
[Xen-devel] [PATCH 0/4] Don't allocate dom->p2m_host[] for translated domains
Posted by Andrew Cooper 4 years, 3 months ago
Vastly drop xl's memory usage for HVM (x86 and ARM) guest construction.

See
https://lore.kernel.org/xen-devel/1562159202-11316-1-git-send-email-vrd@amazon.de/T/#u
for the origins of this work, but ultimately I think this is a far cleaner
solution to the problem.

Andrew Cooper (4):
  tools/dombuilder: xc_dom_x86 cleanup
  tools/dombuilder: Remove PV-only, mandatory hooks
  tools/dombuilder: Remove p2m_guest from the common interface
  tools/dombuilder: Don't allocate dom->p2m_host[] for translated
    domains

 stubdom/grub/kexec.c         |  36 ++++------
 tools/libxc/include/xc_dom.h |  24 +++----
 tools/libxc/xc_dom_arm.c     |  30 --------
 tools/libxc/xc_dom_boot.c    |   6 +-
 tools/libxc/xc_dom_core.c    |  43 +----------
 tools/libxc/xc_dom_x86.c     | 166 ++++++++++++++++++++++---------------------
 6 files changed, 114 insertions(+), 191 deletions(-)

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH 0/4] Don't allocate dom->p2m_host[] for translated domains
Posted by Wei Liu 4 years, 2 months ago
On Tue, Dec 17, 2019 at 08:15:46PM +0000, Andrew Cooper wrote:
> Vastly drop xl's memory usage for HVM (x86 and ARM) guest construction.
> 
> See
> https://lore.kernel.org/xen-devel/1562159202-11316-1-git-send-email-vrd@amazon.de/T/#u
> for the origins of this work, but ultimately I think this is a far cleaner
> solution to the problem.
> 
> Andrew Cooper (4):
>   tools/dombuilder: xc_dom_x86 cleanup
>   tools/dombuilder: Remove PV-only, mandatory hooks
>   tools/dombuilder: Remove p2m_guest from the common interface
>   tools/dombuilder: Don't allocate dom->p2m_host[] for translated
>     domains

The code looks good to me.

Acked-by: Wei Liu <wl@xen.org>

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