KVM: arm64: Document default vPMU behavior on heterogeneous systems
authorOliver Upton <oliver.upton@linux.dev>
Thu, 25 May 2023 21:27:22 +0000 (21:27 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 31 May 2023 09:29:56 +0000 (10:29 +0100)
commit40e54cad454076172cc3e2bca60aa924650a3e4b
tree9c3b6a6d4f31719000fd5f64f8ec5fc66602c2da
parent1c913a1c35aa61cf280173b2bcc133c3953c38fc
KVM: arm64: Document default vPMU behavior on heterogeneous systems

KVM maintains a mask of supported CPUs when a vPMU type is explicitly
selected by userspace and is used to reject any attempt to run the vCPU
on an unsupported CPU. This is great, but we're still beholden to the
default behavior where vCPUs can be scheduled anywhere and guest
counters may silently stop working.

Avoid confusing the next poor sod to look at this code and document the
intended behavior.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230525212723.3361524-3-oliver.upton@linux.dev
arch/arm64/kvm/pmu-emul.c