diff options
author | Marc Zyngier <maz@kernel.org> | 2020-11-27 11:46:47 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-11-27 11:46:47 +0000 |
commit | 6e5d8c713d1e0d1e3efb327dd61fdf01ffd256db (patch) | |
tree | e7034d81ce52c926ce2f29c246912bd8340bcc7c /arch/arm64/include | |
parent | 8c38602fb3ebe12ff8c63588147ed1cfb6890733 (diff) | |
parent | 7521c3a9e63041602d531e36c07a340f188dc1fa (diff) |
Merge branch 'kvm-arm64/pmu-undef' into kvmarm-master/next
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 4f3f040cd573..ac11adab6602 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -733,4 +733,7 @@ bool kvm_arm_vcpu_is_finalized(struct kvm_vcpu *vcpu); #define kvm_arm_vcpu_sve_finalized(vcpu) \ ((vcpu)->arch.flags & KVM_ARM64_VCPU_SVE_FINALIZED) +#define kvm_vcpu_has_pmu(vcpu) \ + (test_bit(KVM_ARM_VCPU_PMU_V3, (vcpu)->arch.features)) + #endif /* __ARM64_KVM_HOST_H__ */ |