]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm,arm64/xen: move Xen initialization earlier
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 6 May 2015 14:13:31 +0000 (14:13 +0000)
committerElena Ufimtseva <elena.ufimtseva@oracle.com>
Wed, 12 Aug 2015 10:05:52 +0000 (06:05 -0400)
commit2ff5879f7f119e17c346cc0ea9b89348e1844efc
treef1b2fa8d6791163fabf2c56153b482ffb03731e6
parentc73caa30a8dc037c7968a64bab259876526fe7f2
arm,arm64/xen: move Xen initialization earlier

Currently, Xen is initialized/discovered in an initcall. This doesn't
allow us to support earlyprintk or choosing the preferred console when
running on Xen.

The current function xen_guest_init is now split in 2 parts:
    - xen_early_init: Check if there is a Xen node in the device tree
    and setup domain type
    - xen_guest_init: Retrieve the information from the device node and
    initialize Xen (grant table, shared page...)

The former is called in setup_arch, while the latter is an initcall.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 5882bfef6327093bff63569be19795170ff71e5f)
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
arch/arm/include/asm/xen/hypervisor.h
arch/arm/kernel/setup.c
arch/arm/xen/enlighten.c
arch/arm64/kernel/setup.c