]> www.infradead.org Git - users/dwmw2/qemu.git/commit
xen_arm: Initialize RAM and add hi/low memory regions
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Wed, 30 Aug 2023 04:35:18 +0000 (21:35 -0700)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 31 Aug 2023 01:23:08 +0000 (18:23 -0700)
commit560142190bc347fdd4511a795bdcff768799519d
tree5da5527803b60f7028569c9357e181c1c4479555
parent0c8ab1cddd6c1bf4e3722fcea111e614c22dcc09
xen_arm: Initialize RAM and add hi/low memory regions

In order to use virtio backends we need to initialize RAM for the
xen-mapcache (which is responsible for mapping guest memory using foreign
mapping) to work. Calculate and add hi/low memory regions based on
machine->ram_size.

Use the constants defined in public header arch-arm.h to be aligned with the xen
toolstack.

While using this machine, the toolstack should then pass real ram_size using
"-m" arg. If "-m" is not given, create a QEMU machine without IOREQ and other
emulated devices like TPM and VIRTIO. This is done to keep this QEMU machine
usable for /etc/init.d/xencommons.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
hw/arm/xen_arm.c
include/hw/xen/xen_native.h