]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Add kvm_vcpu_has_pmu() helper
authorMarc Zyngier <maz@kernel.org>
Fri, 13 Nov 2020 16:39:44 +0000 (16:39 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 27 Nov 2020 11:39:14 +0000 (11:39 +0000)
commit34348314918fad213a20b54d6db130a74503f26f
treee6745f56d0512dc2986fc7a749aadd151feb5136
parenta2be8afb5ae0120f1e1385fa0b2a475f25d621f2
KVM: arm64: Add kvm_vcpu_has_pmu() helper

There are a number of places where we check for the KVM_ARM_VCPU_PMU_V3
feature. Wrap this check into a new kvm_vcpu_has_pmu(), and use
it at the existing locations.

No functional change.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/pmu-emul.c