Re: [RFC PATCH v3 7/8] perf: arm_pmuv3: Keep out of guest counter partition

2025-03-25 Thread Colton Lewis
James Clark writes: On 13/02/2025 6:03 pm, Colton Lewis wrote: If the PMU is partitioned, keep the driver out of the guest counter partition and only use the host counter partition. Partitioning is defined by the MDCR_EL2.HPMN register field and saved in cpu_pmu->hpmn. The range 0..HPMN-1 is a

Re: [RFC PATCH v3 7/8] perf: arm_pmuv3: Keep out of guest counter partition

2025-03-24 Thread James Clark
On 13/02/2025 6:03 pm, Colton Lewis wrote: If the PMU is partitioned, keep the driver out of the guest counter partition and only use the host counter partition. Partitioning is defined by the MDCR_EL2.HPMN register field and saved in cpu_pmu->hpmn. The range 0..HPMN-1 is accessible by EL1 and

[RFC PATCH v3 7/8] perf: arm_pmuv3: Keep out of guest counter partition

2025-02-13 Thread Colton Lewis
If the PMU is partitioned, keep the driver out of the guest counter partition and only use the host counter partition. Partitioning is defined by the MDCR_EL2.HPMN register field and saved in cpu_pmu->hpmn. The range 0..HPMN-1 is accessible by EL1 and EL0 while HPMN..PMCR.N is reserved for EL2. De