Skip to contentSkip to conversation

xen/arm: Blacklist the memory mapped timer (armv7-timer-mem)

PATCH In review Julien Grall 2 participants 2 messages Jan 14, 2015 – Jan 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen/arm: Blacklist the memory mapped timer (armv7-timer-mem)

Some platform (such as the VFP Base AEMv8 model) has a memory mapped timer. We don't want DOM0 use this timer rather than the generic ARM timer. So blacklist it for all platforms.

---
This patch is candidate to backport for Xen 4.5 and Xen 4.4.

It may not apply correctly for Xen 4.4.

Changes in v2:
- Add a comment in the code to explain why we need to blacklist memory mapped timer

---
 xen/arch/arm/domain_build.c | 2 ++
 1 file changed, 2 insertions(+)
xen/arch/arm/domain_build.c +2 -0
index bf8dc78..d5959b5 100644
@@ -1047,6 +1047,8 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
         DT_MATCH_COMPATIBLE("arm,psci"),
         DT_MATCH_PATH("/cpus"),
         DT_MATCH_TYPE("memory"),
+        /* The memory mapped timer is not supported by Xen. */
+        DT_MATCH_COMPATIBLE("arm,armv7-timer-mem"),
         { /* sentinel */ },
     };
     static const struct dt_device_match gic_matches[] __initconst =
Signature · 1 line
2.1.4
#1 lore raw
Quoted 5 lines · Julien Grall

Some platform (such as the VFP Base AEMv8 model) has a memory mapped timer. We don't want DOM0 use this timer rather than the generic ARM timer. So blacklist it for all platforms.

Acked + applied.

Quoted 26 lines

---
This patch is candidate to backport for Xen 4.5 and Xen 4.4.

It may not apply correctly for Xen 4.4.

Changes in v2:
- Add a comment in the code to explain why we need to blacklist memory mapped timer

---
 xen/arch/arm/domain_build.c | 2 ++
 1 file changed, 2 insertions(+)
xen/arch/arm/domain_build.c +2 -0
index bf8dc78..d5959b5 100644
@@ -1047,6 +1047,8 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
         DT_MATCH_COMPATIBLE("arm,psci"),
         DT_MATCH_PATH("/cpus"),
         DT_MATCH_TYPE("memory"),
+        /* The memory mapped timer is not supported by Xen. */
+        DT_MATCH_COMPATIBLE("arm,armv7-timer-mem"),
         { /* sentinel */ },
     };
     static const struct dt_device_match gic_matches[] __initconst =