xen: arm: Do not expose PMU to domain 0
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
@@ -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
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.
Signed-off-by Ian Campbell <[email protected]>--- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)xen/arch/arm/domain_build.c +0
-0
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
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.
Signed-off-by Ian Campbell <[email protected]>--- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)xen/arch/arm/domain_build.c +0
-0xen/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.
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.
Signed-off-by Ian Campbell <[email protected]>--- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)xen/arch/arm/domain_build.c +0
-0xen/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
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.
Signed-off-by Ian Campbell <[email protected]>--- xen/arch/arm/domain_build.c | 1 + 1 file changed, 1 insertion(+)xen/arch/arm/domain_build.c +0
-0xen/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.