summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2024-03-05 18:48:39 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-10 16:35:48 +0200
commit9e2af26c29c6c6f1215d56c3246da148e54b2357 (patch)
treeae8a3b37e541a3111177c08c2cd03eb7386d55a7 /security
parent651bf5b1d0708d277e5f2cf2887ec27d3b04f500 (diff)
downloadlinux-9e2af26c29c6c6f1215d56c3246da148e54b2357.tar.gz
linux-9e2af26c29c6c6f1215d56c3246da148e54b2357.tar.bz2
linux-9e2af26c29c6c6f1215d56c3246da148e54b2357.zip
KVM: arm64: Fix host-programmed guest events in nVHE
commit e89c928bedd77d181edc2df01cb6672184775140 upstream. Programming PMU events in the host that count during guest execution is a feature supported by perf, e.g. perf stat -e cpu_cycles:G ./lkvm run While this works for VHE, the guest/host event bitmaps are not carried through to the hypervisor in the nVHE configuration. Make kvm_pmu_update_vcpu_events() conditional on whether or not _hardware_ supports PMUv3 rather than if the vCPU as vPMU enabled. Cc: stable@vger.kernel.org Fixes: 84d751a019a9 ("KVM: arm64: Pass pmu events to hyp via vcpu") Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240305184840.636212-3-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions