mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
5177fe91e4
Userspace can specify which events a guest is allowed to use with the KVM_ARM_VCPU_PMU_V3_FILTER attribute. The list of allowed events can be identified by a guest from reading the PMCEID{0,1}_EL0 registers. Changing the PMU event filter after a VCPU has run can cause reads of the registers performed before the filter is changed to return different values than reads performed with the new event filter in place. The architecture defines the two registers as read-only, and this behaviour contradicts that. Keep track when the first VCPU has run and deny changes to the PMU event filter to prevent this from happening. Signed-off-by: Marc Zyngier <maz@kernel.org> [ Alexandru E: Added commit message, updated ioctl documentation ] Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220127161759.53553-2-alexandru.elisei@arm.com |
||
---|---|---|
.. | ||
arm | ||
devices | ||
amd-memory-encryption.rst | ||
api.rst | ||
cpuid.rst | ||
halt-polling.rst | ||
hypercalls.rst | ||
index.rst | ||
locking.rst | ||
mmu.rst | ||
msr.rst | ||
nested-vmx.rst | ||
ppc-pv.rst | ||
review-checklist.rst | ||
running-nested-guests.rst | ||
s390-diag.rst | ||
s390-pv-boot.rst | ||
s390-pv.rst | ||
timekeeping.rst | ||
vcpu-requests.rst |