linux/arch/arm64
Oliver Upton e016333745 KVM: arm64: Only reset vCPU-scoped feature ID regs once
The general expecation with feature ID registers is that they're 'reset'
exactly once by KVM for the lifetime of a vCPU/VM, such that any
userspace changes to the CPU features / identity are honored after a
vCPU gets reset (e.g. PSCI_ON).

KVM handles what it calls VM-scoped feature ID registers correctly, but
feature ID registers local to a vCPU (CLIDR_EL1, MPIDR_EL1) get wiped
after every reset. What's especially concerning is that a
potentially-changing MPIDR_EL1 breaks MPIDR compression for indexing
mpidr_data, as the mask of useful bits to build the index could change.

This is absolutely no good. Avoid resetting vCPU feature ID registers
more than once.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240502233529.1958459-4-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
2024-05-09 18:39:45 +01:00
..
boot arm64: dts: qcom: sc7180-trogdor: mark bluetooth address as broken 2024-03-29 09:48:37 -04:00
configs arm64 updates for 6.9: 2024-03-14 15:35:42 -07:00
crypto This update includes the following changes: 2024-03-15 14:46:54 -07:00
hyperv x86/hyperv: Use Hyper-V entropy to seed guest random number generator 2024-03-18 22:01:52 +00:00
include KVM: arm64: Only reset vCPU-scoped feature ID regs once 2024-05-09 18:39:45 +01:00
kernel arm64/ptrace fix to use the correct SVE layout based on the saved 2024-04-05 13:12:35 -07:00
kvm KVM: arm64: Only reset vCPU-scoped feature ID regs once 2024-05-09 18:39:45 +01:00
lib arm64: Get rid of ARM64_HAS_NO_HW_PREFETCH 2023-12-05 12:02:52 +00:00
mm - Sumanth Korikkar has taught s390 to allocate hotplug-time page frames 2024-03-14 17:43:30 -07:00
net arm64: bpf: fix 32bit unconditional bswap 2024-03-21 03:59:05 -07:00
tools S390: 2024-03-15 13:03:13 -07:00
xen
Kbuild
Kconfig arm64 fix/update: 2024-03-21 17:21:41 -07:00
Kconfig.debug
Kconfig.platforms arm64: Add config for AMD Pensando SoC platforms 2023-09-28 09:45:23 +02:00
Makefile arm64: rust: Enable Rust support for AArch64 2024-02-09 16:12:36 +00:00