Skip to contentSkip to conversation

xen: arm: Do not expose PMU to domain 0

PATCH Superseded Ian Campbell 2 participants 5 messages Jun 4, 2015 – Jun 5, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 xen/arch/arm/domain_build.c |    1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
index 1e545fe..8e87315 100644
@@ -1105,6 +1105,7 @@ 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,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
#1 lore raw

Hi Ian,

Quoted 16 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.

---
  xen/arch/arm/domain_build.c |    1 +
  1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +0 -0
index 1e545fe..8e87315 100644

xen/arch/arm/domain_build.c static int handle_node(struct domain *d, struct kernel_info *kinfo, · line 1108

Quoted 4 lines
xen/arch/arm/domain_build.c +1 -0
@@ -1105,6 +1105,7 @@ 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,armv8-pmuv3"),

Will you are here, can you blacklist at list "arm,cortex-a15-pmu" and "arm,cortex-a7-pmu"?

I suspect we would have the same problem with them.

Regards,

Signature · 1 line
Julien Grall
#2 lore raw
Quoted 27 lines · Julien Grall

Hi Ian,

Quoted 16 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.

---
  xen/arch/arm/domain_build.c |    1 +
  1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +0 -0
index 1e545fe..8e87315 100644

xen/arch/arm/domain_build.c static int handle_node(struct domain *d, struct kernel_info *kinfo, · line 1108

Quoted 4 lines
xen/arch/arm/domain_build.c +1 -0
@@ -1105,6 +1105,7 @@ 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,armv8-pmuv3"),

Will you are here, can you blacklist at list "arm,cortex-a15-pmu" and "arm,cortex-a7-pmu"?

Quoted 1 line

I suspect we would have the same problem with them.

Suspect, or know?

Ian.

#3 lore raw
Quoted 28 lines · Ian Campbell
Quoted 27 lines · Julien Grall

Hi Ian,

Quoted 16 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.

---
  xen/arch/arm/domain_build.c |    1 +
  1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +0 -0
index 1e545fe..8e87315 100644

xen/arch/arm/domain_build.c static int handle_node(struct domain *d, struct kernel_info *kinfo, · line 1108

Quoted 4 lines
xen/arch/arm/domain_build.c +1 -0
@@ -1105,6 +1105,7 @@ 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,armv8-pmuv3"),

Will you are here, can you blacklist at list "arm,cortex-a15-pmu" and "arm,cortex-a7-pmu"?

Quoted 3 lines
Quoted 1 line

I suspect we would have the same problem with them.

Suspect, or know?

It's based on the documentation
(Documentation/devicetree/bindings/arm/pmu.txt):

"- interrupts : 1 combined interrupt or 1 per core. If the interrupt is a per-cpu
interrupt (PPI) then 1 interrupt should be specified.
"

Regards,

Signature · 1 line
Julien Grall
#4 lore raw
Quoted 33 lines · Julien Grall
Quoted 28 lines · Ian Campbell
Quoted 27 lines · Julien Grall

Hi Ian,

Quoted 16 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.

---
  xen/arch/arm/domain_build.c |    1 +
  1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +0 -0
index 1e545fe..8e87315 100644

xen/arch/arm/domain_build.c static int handle_node(struct domain *d, struct kernel_info *kinfo, · line 1108

Quoted 4 lines
xen/arch/arm/domain_build.c +1 -0
@@ -1105,6 +1105,7 @@ 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,armv8-pmuv3"),

Will you are here, can you blacklist at list "arm,cortex-a15-pmu" and "arm,cortex-a7-pmu"?

Quoted 3 lines
Quoted 1 line

I suspect we would have the same problem with them.

Suspect, or know?

Quoted 7 lines

It's based on the documentation
(Documentation/devicetree/bindings/arm/pmu.txt):

"- interrupts : 1 combined interrupt or 1 per core. If the interrupt is a per-cpu
interrupt (PPI) then 1 interrupt should be specified.
"

Thanks, I'll include that reference.

Ian.