Skip to contentSkip to conversation

xen: arm: Do not expose PMU to domain 0

PATCH In review Ian Campbell 2 participants 3 messages Jun 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen: arm: Do not expose PMU to domain 0

It uses a PPI which we cannot route to a guest, and will surely need more support than just that anyway.

I noticed this on Mustang with UEFI where the built in DTB contains a node of this type.

According to linux/Documentation/devicetree/bindings/arm/pmu.txt the ARM v7 (Cortex-A{7,15}) PMUs require a PPI too, so blacklist them as well.

---
 xen/arch/arm/domain_build.c |    3 +++
 1 file changed, 3 insertions(+)
xen/arch/arm/domain_build.c +3 -0
index 1e545fe..e9cb8a9 100644
@@ -1105,6 +1105,9 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo,
         DT_MATCH_COMPATIBLE("multiboot,module"),
         DT_MATCH_COMPATIBLE("arm,psci"),
         DT_MATCH_COMPATIBLE("arm,psci-0.2"),
+        DT_MATCH_COMPATIBLE("arm,cortex-a7-pmu"),
+        DT_MATCH_COMPATIBLE("arm,cortex-a15-pmu"),
+        DT_MATCH_COMPATIBLE("arm,armv8-pmuv3"),
         DT_MATCH_PATH("/cpus"),
         DT_MATCH_TYPE("memory"),
         /* The memory mapped timer is not supported by Xen. */
Signature · 1 line
1.7.10.4
Reviewed-by on v2 1/1
#1 lore raw

Hi Ian,

Quoted 11 lines · Ian Campbell

It uses a PPI which we cannot route to a guest, and will surely need more support than just that anyway.

I noticed this on Mustang with UEFI where the built in DTB contains a node of this type.

According to linux/Documentation/devicetree/bindings/arm/pmu.txt the ARM v7 (Cortex-A{7,15}) PMUs require a PPI too, so blacklist them as well.

Regards,

Signature · 1 line
Julien Grall
author Applied
#2 lore raw
Quoted 9 lines · Julien Grall

Hi Ian,

Quoted 6 lines · Ian Campbell

It uses a PPI which we cannot route to a guest, and will surely need more support than just that anyway.

I noticed this on Mustang with UEFI where the built in DTB contains a node of this type.

Quoted 7 lines
Quoted 5 lines

According to linux/Documentation/devicetree/bindings/arm/pmu.txt the ARM v7 (Cortex-A{7,15}) PMUs require a PPI too, so blacklist them as well.

Applied, thanks.