summaryrefslogtreecommitdiff
path: root/arch/arm/Kbuild
diff options
context:
space:
mode:
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>2021-12-09 23:05:35 +0300
committerJuergen Gross <jgross@suse.com>2022-01-06 11:53:41 +0300
commitb2371587fe0c02657db89b67b72efc581bd3f7a0 (patch)
treed2b161445de40654e776a5b1c412293690a139f2 /arch/arm/Kbuild
parentd1a928eac72962b562162c25baf45ce147e27247 (diff)
downloadlinux-b2371587fe0c02657db89b67b72efc581bd3f7a0.tar.xz
arm/xen: Read extended regions from DT and init Xen resource
This patch implements arch_xen_unpopulated_init() on Arm where the extended regions (if any) are gathered from DT and inserted into specific Xen resource to be used as unused address space for Xen scratch pages by unpopulated-alloc code. The extended region (safe range) is a region of guest physical address space which is unused and could be safely used to create grant/foreign mappings instead of wasting real RAM pages from the domain memory for establishing these mappings. The extended regions are chosen by the hypervisor at the domain creation time and advertised to it via "reg" property under hypervisor node in the guest device-tree. As region 0 is reserved for grant table space (always present), the indexes for extended regions are 1...N. If arch_xen_unpopulated_init() fails for some reason the default behaviour will be restored (allocate xenballooned pages). This patch also removes XEN_UNPOPULATED_ALLOC dependency on x86. Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Link: https://lore.kernel.org/r/1639080336-26573-6-git-send-email-olekstysh@gmail.com Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'arch/arm/Kbuild')
0 files changed, 0 insertions, 0 deletions