Hi Michal,
thanks again for your review. As you suggested, I went with a fixed
default of 256 pages (1MByte), as x86 HAP does in hap_enable(). This
keeps the allocation bounded and seems like a sane value. The
toolstack or dom0less, anyway set the full size later.
Then my new helper domain_p2m_default_kb() goes away, which then also
addresses your other two comments. The patch now only touches
xen/arch/arm/mmu/p2m.c again, just like v1.
Signed-off-by: Julian Vetter <julian.vetter@vates.tech>
Julian Vetter (1):
xen/arm: populate a default P2M pool for new domains
xen/arch/arm/mmu/p2m.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
--
2.53.0
--
Julian Vetter | Vates Hypervisor & Kernel Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech