tools: arm: report an error if the guest RAM is too large
authorIan Campbell <ian.campbell@citrix.com>
Thu, 22 May 2014 09:46:37 +0000 (10:46 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jun 2014 13:56:20 +0000 (14:56 +0100)
commit5a959f44ed03398870b6ec0dfebb59dcd5981f94
tree5f83569982d704bf5e3a1600a421deb846b31501
parent2e3f5f45294cf2c275d96deef1193099a08ef454
tools: arm: report an error if the guest RAM is too large

Due to the layout of the guest physical address space we cannot support more
than 768M of RAM before overrunning the area set aside for the grant table. Due
to the presence of the magic pages at the end of the RAM region guests are
actually limited to 767M.

Catch this case during domain build and fail gracefully instead of obscurely
later on.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_dom_arm.c
xen/include/public/arch-arm.h