mirror-linux/Documentation/virt/kvm/devices
Marc Zyngier b7628c7973 KVM: arm64: Allow userspace to limit the number of PMU counters for EL2 VMs
As long as we had purely EL1 VMs, we could easily update the number
of guest-visible counters by letting userspace write to PMCR_EL0.N.

With VMs started at EL2, PMCR_EL1.N only reflects MDCR_EL2.HPMN,
and we don't have a good way to limit it.

For this purpose, introduce a new PMUv3 attribute that allows
limiting the maximum number of counters. This requires the explicit
selection of a PMU.

Suggested-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
2025-04-11 13:08:23 +01:00
..
README
arm-vgic-its.rst KVM: arm64: Document ordering requirements for irqbypass 2025-02-26 13:22:49 -08:00
arm-vgic-v3.rst KVM: arm64: nv: Allow userland to set VGIC maintenance IRQ 2025-03-03 14:57:10 -08:00
arm-vgic.rst KVM: Documentation: Correct the VGIC V2 CPU interface addr space size 2024-06-28 22:00:24 +00:00
index.rst docs: kvm: convert devices/xive.txt to ReST 2020-02-12 20:09:58 +01:00
mpic.rst docs: kvm: convert devices/mpic.txt to ReST 2020-02-12 20:09:54 +01:00
s390_flic.rst KVM: s390: Reject setting flic pfault attributes on ucontrol VMs 2025-01-07 16:36:10 +01:00
vcpu.rst KVM: arm64: Allow userspace to limit the number of PMU counters for EL2 VMs 2025-04-11 13:08:23 +01:00
vfio.rst kvm/vfio: Accept vfio device file from userspace 2023-07-25 10:18:42 -06:00
vm.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
xics.rst kvm: rename KVM_MAX_VCPU_ID to KVM_MAX_VCPU_IDS 2021-09-30 04:27:05 -04:00
xive.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00

README

This directory contains specific device bindings for KVM_CAP_DEVICE_CTRL.