OSDN Git Service

KVM: arm64: PMU: Always advertise the CHAIN event
authorMarc Zyngier <maz@kernel.org>
Sun, 13 Nov 2022 16:38:19 +0000 (16:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Nov 2022 15:39:51 +0000 (15:39 +0000)
commitacdd8a4e13a008a83c6da88bb53eecbecda9714c
tree11cfd07ab0f980f9eb296b50f1e0ba0441055268
parentbead02204e9806807bb290137b1ccabfcb4b16fd
KVM: arm64: PMU: Always advertise the CHAIN event

Even when the underlying HW doesn't offer the CHAIN event
(which happens with QEMU), we can always support it as we're
in control of the counter overflow.

Always advertise the event via PMCEID0_EL0.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221113163832.3154370-4-maz@kernel.org
arch/arm64/kvm/pmu-emul.c