]> xenbits.xensource.com Git - xen.git/commit
xen: arm: define guest virtual platform in API headers
authorIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 13:00:18 +0000 (13:00 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 16:41:06 +0000 (16:41 +0000)
commit99bf30a5d13e5319019c74d24c883b2e2c7e3479
tree009a94be7dcc940945609f83939c2d03e2e3c3d9
parent512bfe693e2189d6fc233b99cb07bfb1b4a093a4
xen: arm: define guest virtual platform in API headers

The tools and the hypervisor need to agree on various aspects of the guest
environment, such as interrupt numbers, memory layout, initial register values
for registers which are implementation defined etc. Therefore move the
associated defines into the public interface headers, or create them as
necessary.

This just exposes the current de-facto standard guest layout, which may be
subject to change in the future. This deliberately does not make the guest
layout dynamic since there is currently no need.

These values should not be exposed to guests, they should find these things
out via device tree or should not be relying on implementation defined
defaults.

Various bits of the hypervisor needed to change to configure dom0 with the real
platform values while using the virtual platform configuration for guests.
Arrange for this where appropriate and plumb through as needed.

We also need to expose some 64-bit values (e.g. PSR_GUEST64_INIT) for the
benefit of 32 bit toolstacks building 64 bit guests.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
13 files changed:
tools/libxc/xc_dom_arm.c
xen/arch/arm/domain.c
xen/arch/arm/domain_build.c
xen/arch/arm/gic.c
xen/arch/arm/psci.c
xen/arch/arm/traps.c
xen/arch/arm/vtimer.c
xen/include/asm-arm/domain.h
xen/include/asm-arm/event.h
xen/include/asm-arm/gic.h
xen/include/asm-arm/processor.h
xen/include/asm-arm/psci.h
xen/include/public/arch-arm.h