linux-stable/Documentation
Marc Zyngier 29ca4fac7d KVM: arm64: Do not change the PMU event filter after a VCPU has run
[ Upstream commit 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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 19:27:13 +02:00
..
ABI f2fs: don't get FREEZE lock in f2fs_evict_inode in frozen fs 2022-04-08 13:58:40 +02:00
accounting
admin-guide docs: sysctl/kernel: add missing bit to panic_print 2022-04-08 13:59:03 +02:00
arc
arm
arm64
block
bpf
cdrom
core-api Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE"" 2022-04-08 13:58:59 +02:00
cpu-freq
crypto
dev-tools
devicetree dt-bindings: pinctrl: pinctrl-microchip-sgpio: Fix example 2022-04-08 13:59:02 +02:00
doc-guide
driver-api cxl/core/port: Rename bus.c to port.c 2022-04-08 13:58:07 +02:00
fault-injection
fb
features
filesystems
firmware-guide
firmware_class
fpga
gpu
hid
hwmon
i2c
ia64
ide
iio
infiniband
input
isdn
kbuild
kernel-hacking
leds
litmus-tests
livepatch
locking
m68k
maintainer
mhi
mips
misc-devices
netlabel
networking
nios2
nvdimm
openrisc
parisc
PCI
pcmcia
power
powerpc
process Documentation: update stable tree link 2022-04-08 13:57:17 +02:00
RCU
riscv
s390
scheduler
scsi
security docs: fix 'make htmldocs' warning in SCTP.rst 2022-04-08 13:58:59 +02:00
sh
sound ALSA: hda/realtek: Add alc256-samsung-headphone fixup 2022-04-08 13:58:46 +02:00
sparc
sphinx docs: sphinx/requirements: Limit jinja2<3.1 2022-04-08 13:57:14 +02:00
sphinx-static
spi
staging
target
timers
tools
trace
translations
tty
usb
userspace-api
virt KVM: arm64: Do not change the PMU event filter after a VCPU has run 2022-04-13 19:27:13 +02:00
vm
w1
watchdog
x86
xtensa
.gitignore
arch.rst
asm-annotations.rst
atomic_bitops.txt
atomic_t.txt
Changes
CodingStyle
conf.py
COPYING-logo
docutils.conf
dontdiff
index.rst
Kconfig
logo.gif
Makefile
memory-barriers.txt
SubmittingPatches
watch_queue.rst