mbox series

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

Message ID 20191217201550.15864-1-andrew.cooper3@citrix.com (mailing list archive)
Headers show
Series Don't allocate dom->p2m_host[] for translated domains | expand

Message

Andrew Cooper Dec. 17, 2019, 8:15 p.m. UTC
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(-)

Comments

Wei Liu Dec. 31, 2019, 4:37 p.m. UTC | #1
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>