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)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 14 Sep 2012 10:47:52 +0000 (10:47 +0000)
commit2e01f16601d8924b12b1acf1cdc49a0d1cc1cfb2
tree25563e7fcc72619a52bb335dd845e741e39ae6d5
parentc43cdfbc4cebdf1a7992432615bf5155b51b8cc0
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>
arch/arm/xen/enlighten.c