Re: [PATCH v10 31/43] arm_pmu: Provide a mechanism for disabling the physical IRQ

Gavin Shan
2025-09-22T00:03:22Z

On 8/21/25 12:55 AM, Steven Price wrote:
> Arm CCA assigns the physical PMU device to the guest running in realm
> world, however the IRQs are routed via the host. To enter a realm guest
> while a PMU IRQ is pending it is necessary to block the physical IRQ to
> prevent an immediate exit. Provide a mechanism in the PMU driver for KVM
> to control the physical IRQ.
>
> Signed-off-by: Steven Price <steven.price@arm.com>
> ---
> v3: Add a dummy function for the !CONFIG_ARM_PMU case.
> ---
> drivers/perf/arm_pmu.c | 15 +++++++++++++++
> include/linux/perf/arm_pmu.h | 5 +++++
> 2 files changed, 20 insertions(+)
>