xen/arm: domain_build: Don't continue if unable to allocate all dom0 banks
authorJulien Grall <julien.grall@arm.com>
Wed, 21 Aug 2019 21:42:31 +0000 (22:42 +0100)
committerJulien Grall <julien.grall@arm.com>
Wed, 2 Oct 2019 08:51:17 +0000 (09:51 +0100)
commit6341a674573f1834f083f0ab0f5b36b075f9e02e
tree6e5c16ce3712f90e6e0b29eeacb536acf692245f
parent6069f893e07d57aab19481dfc30c68a5d7a8391e
xen/arm: domain_build: Don't continue if unable to allocate all dom0 banks

Xen will only print a warning if there are memory unallocated when using
1:1 mapping (only used by dom0). This also includes the case where no
memory has been allocated.

It will bring to all sort of issues that can be hard to diagnostic for
users (the warning can be difficult to spot or disregard).

If the users request 1GB of memory, then most likely they want the exact
amount and not 512MB. So panic if all the memory has not been allocated.

After this change, the behavior is the same as for non-1:1 memory
allocation (used by domU).

At the same time, reflow the message to have the format on a single
line.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c