Home
last modified time | relevance | path

Searched hist:"20492 a62b99bd4367b79a76ca288d018f11980db" (Results 1 – 2 of 2) sorted by relevance

/linux/arch/arm64/kvm/
H A DMakefilediff 20492a62b99bd4367b79a76ca288d018f11980db Mon May 16 14:02:24 CEST 2022 Marc Zyngier <maz@kernel.org> KVM: arm64: pmu: Restore compilation when HW_PERF_EVENTS isn't selected

Moving kvm_pmu_events into the vcpu (and refering to it) broke the
somewhat unusual case where the kernel has no support for a PMU
at all.

In order to solve this, move things around a bit so that we can
easily avoid refering to the pmu structure outside of PMU-aware
code. As a bonus, pmu.c isn't compiled in when HW_PERF_EVENTS
isn't selected.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/202205161814.KQHpOzsJ-lkp@intel.com
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dswitch.cdiff 20492a62b99bd4367b79a76ca288d018f11980db Mon May 16 14:02:24 CEST 2022 Marc Zyngier <maz@kernel.org> KVM: arm64: pmu: Restore compilation when HW_PERF_EVENTS isn't selected

Moving kvm_pmu_events into the vcpu (and refering to it) broke the
somewhat unusual case where the kernel has no support for a PMU
at all.

In order to solve this, move things around a bit so that we can
easily avoid refering to the pmu structure outside of PMU-aware
code. As a bonus, pmu.c isn't compiled in when HW_PERF_EVENTS
isn't selected.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/202205161814.KQHpOzsJ-lkp@intel.com