linux/arch/arm64/kvm
Oliver Upton e96d8b80af KVM: arm64: Only apply PMCR_EL0.P to the guest range of counters
An important distinction from other registers affected by HPMN is that
PMCR_EL0 only affects the guest range of counters, regardless of the EL
from which it is accessed. Ensure that PMCR_EL0.P is always applied to
'guest' counters by manually computing the mask rather than deriving it
from the current context.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241217175611.3658290-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
2024-12-18 13:22:25 -08:00
..
hyp KVM: arm64: Always check the state from hyp_ack_unshare() 2024-12-18 13:21:37 -08:00
vgic KVM: arm64: vgic-its: Add error handling in vgic_its_cache_translation 2024-12-03 16:22:10 -08:00
.gitignore
arch_timer.c KVM: arm64: Get rid of userspace_irqchip_in_use 2024-10-31 21:22:52 +00:00
arm.c Merge branch kvm-arm64/misc into kvmarm/next 2024-11-11 18:47:50 +00:00
at.c KVM: arm64: Fix S1/S2 combination when FWB==1 and S2 has Device memory type 2024-11-26 07:32:27 -08:00
debug.c
emulate-nested.c Merge branch kvm-arm64/nv-pmu into kvmarm/next 2024-11-11 18:49:02 +00:00
fpsimd.c KVM: arm64: Add save/restore support for FPMR 2024-08-27 07:59:27 +01:00
guest.c The biggest change here is eliminating the awful idea that KVM had, of 2024-11-23 16:00:50 -08:00
handle_exit.c Merge branch kvm-arm64/nv-sve into kvmarm/next 2024-07-14 00:27:06 +00:00
hypercalls.c Merge branch kvm-arm64/psci-1.3 into kvmarm/next 2024-11-11 18:36:46 +00:00
inject_fault.c KVM: arm64: Fix typos 2024-02-24 09:13:33 +00:00
Kconfig Merge branch kvm-arm64/s2-ptdump into kvmarm-master/next 2024-09-12 08:38:02 +01:00
Makefile Merge branch kvm-arm64/s2-ptdump into kvmarm-master/next 2024-09-12 08:38:02 +01:00
mmio.c KVM: arm64: Don't retire aborted MMIO instruction 2024-10-26 14:37:49 +00:00
mmu.c The biggest change here is eliminating the awful idea that KVM had, of 2024-11-23 16:00:50 -08:00
nested.c KVM: arm64: Mark set_sysreg_masks() as inline to avoid build failure 2024-11-20 17:22:00 -08:00
pauth.c KVM: arm64: nv: Work around lack of pauth support in old toolchains 2024-04-23 19:27:11 +01:00
pkvm.c KVM: arm64: Prevent kmemleak from accessing .hyp.data 2024-05-01 16:48:14 +01:00
pmu-emul.c KVM: arm64: Only apply PMCR_EL0.P to the guest range of counters 2024-12-18 13:22:25 -08:00
pmu.c perf: arm_pmuv3: Add support for Armv9.4 PMU instruction counter 2024-08-16 13:09:12 +01:00
psci.c KVM: arm64: Add support for PSCI v1.2 and v1.3 2024-10-24 16:38:07 -07:00
ptdump.c KVM: arm64: Register ptdump with debugfs on guest creation 2024-09-10 21:32:51 +01:00
pvtime.c
reset.c KVM: arm64: Refactor kvm_vcpu_enable_ptrauth() for hyp use 2024-10-31 18:45:24 +00:00
stacktrace.c
sys_regs.c KVM: arm64: nv: Reload PMU events upon MDCR_EL2.HPME change 2024-12-18 13:22:25 -08:00
sys_regs.h Merge branch kvm-arm64/visibility-cleanups into kvmarm-master/next 2024-09-12 08:38:17 +01:00
trace.h
trace_arm.h
trace_handle_exit.h
trng.c
va_layout.c
vgic-sys-reg-v3.c
vmid.c