diff options
| author | Fuad Tabba <tabba@google.com> | 2026-02-13 14:38:12 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-02-13 14:54:48 +0000 |
| commit | f66857bafd4f151c5cc6856e47be2e12c1721e43 (patch) | |
| tree | 0adc25bc4afa4c33fa5dbf2adc675da67a628cd2 /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 6316366129d2885fae07c2774f4b7ae0a45fb55d (diff) | |
KVM: arm64: Hide S1POE from guests when not supported by the host
When CONFIG_ARM64_POE is disabled, KVM does not save/restore POR_EL1.
However, ID_AA64MMFR3_EL1 sanitisation currently exposes the feature to
guests whenever the hardware supports it, ignoring the host kernel
configuration.
If a guest detects this feature and attempts to use it, the host will
fail to context-switch POR_EL1, potentially leading to state corruption.
Fix this by masking ID_AA64MMFR3_EL1.S1POE in the sanitised system
registers, preventing KVM from advertising the feature when the host
does not support it (i.e. system_supports_poe() is false).
Fixes: 70ed7238297f ("KVM: arm64: Sanitise ID_AA64MMFR3_EL1")
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260213143815.1732675-2-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
