]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/arm: Xen detection and shared_info page mapping
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 14 Sep 2012 10:47:52 +0000 (10:47 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 4 Dec 2012 17:33:02 +0000 (12:33 -0500)
commit36fa36e3c52d419a21e59888f72657b8fcc74ab8
treee303b7617c6086d36a0d69c01bc3bf22de770b7d
parent6dea0e87a262220fe42658a7e69178fa51890b8f
xen/arm: Xen detection and shared_info page mapping

Check for a node in the device tree compatible with "xen,xen", if it is
present set xen_domain_type to XEN_HVM_DOMAIN and continue
initialization.

Map the real shared info page using XENMEM_add_to_physmap with
XENMAPSPACE_shared_info.

Changes in v4:

- simpler parsing of Xen version in the compatible DT node.

Changes in v3:

- use the "xen,xen" notation rather than "arm,xen";
- add an additional check on the presence of the Xen version.

Changes in v2:

- replace pr_info with pr_debug.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit 2e01f16601d8924b12b1acf1cdc49a0d1cc1cfb2)
arch/arm/xen/enlighten.c