Skip to content
Commit 5882bfef authored by Stefano Stabellini's avatar Stefano Stabellini Committed by David Vrabel
Browse files

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: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: default avatarJulien Grall <julien.grall@linaro.org>
Acked-by: default avatarIan Campbell <ian.campbell@citrix.com>
Acked-by: default avatarWill Deacon <will.deacon@arm.com>
parent 81e863c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment