]> xenbits.xensource.com Git - xen.git/commit
xen: arm: probe the kernel to determine the guest type earlier
authorIan Campbell <ian.campbell@citrix.com>
Fri, 4 Apr 2014 12:56:58 +0000 (13:56 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 16 Apr 2014 15:21:19 +0000 (16:21 +0100)
commita8e15b7550f9c575559dd2dc193f0614b5837799
treea89ff6b2917e8fae2c57b3660805033c1abe864b
parent315b7a0c8fa5ba2e8cd0c78893f9cdb37070171f
xen: arm: probe the kernel to determine the guest type earlier

We need to know if the kernel is 32- or 64- bit capable sooner so that we know
what sort of domain we are building when allocating memory to it (so we can
place appropriate limits when allocating RAM to the guest). At the moment
kernel_prepare() decides this but it needs the memory to have already been
allocated.

Therefore split the probing functionality of kernel_prepare() and call it much
earlier. The remainder of kernel_prepare() deals with where to place the
kernel in RAM which can be deferred until kernel_load() so do so.

Document the input and output of kernel_probe() and _load().

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
[ ijc -- whitespace fixes ]
xen/arch/arm/domain_build.c
xen/arch/arm/kernel.c
xen/arch/arm/kernel.h