diff options
author | Oliver Upton <[email protected]> | 2024-03-05 18:48:39 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2024-03-26 01:51:44 -0700 |
commit | e89c928bedd77d181edc2df01cb6672184775140 (patch) | |
tree | b109ac72bd70fe91c7cb2d42afa4b0d4f2d5a854 /net/unix/sysctl_net_unix.c | |
parent | 4cece764965020c22cff7665b18a012006359095 (diff) |
KVM: arm64: Fix host-programmed guest events in nVHE
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: [email protected]
Fixes: 84d751a019a9 ("KVM: arm64: Pass pmu events to hyp via vcpu")
Reviewed-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions