Skip to content

KVM: arm64: Fix guest feature sanitization and pKVM state synchronization

Fuad Tabba kvm kvmarm linux-arm-kernel stable 2 versions – Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v13 patches 7 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Hide S1POE from guests when not supported by the hostarch/arm64/kvm/sys_regs.c+3 -00 replies
2/4KVM: arm64: Optimise away S1POE handling when not supported by hostarch/arm64/include/asm/kvm_host.h+2 -10 replies
3/4KVM: arm64: Fix ID register initialization for non-protected pKVM guestsarch/arm64/kvm/hyp/nvhe/pkvm.c+33 -20 replies
4/4KVM: arm64: Remove redundant kern_hyp_va() in unpin_host_sve_state()arch/arm64/kvm/hyp/nvhe/pkvm.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] KVM: arm64: Fix guest feature sanitization and pKVM state synchronization

This series addresses state management and feature synchronization vulnerabilities in both standard KVM and pKVM implementations on arm64. The primary focus is ensuring that the hypervisor correctly handles architectural extensions during context switches to prevent state corruption.

Changes since v1 [1]:
- Moved optimising away S1POE handling when not supported by host to a separate patch.
- Fixed clearing, checking and setting KVM_ARCH_FLAG_ID_REGS_INITIALIZED

[1] https://lore.kernel.org/all/[email protected]/

Based on Linux 6.19.

Cheers,
/fuad

Fuad Tabba (4):
KVM: arm64: Hide S1POE from guests when not supported by the host
KVM: arm64: Optimise away S1POE handling when not supported by host
KVM: arm64: Fix ID register initialization for non-protected pKVM
guests
KVM: arm64: Remove redundant kern_hyp_va() in unpin_host_sve_state()

 arch/arm64/include/asm/kvm_host.h |  3 ++-
 arch/arm64/kvm/hyp/nvhe/pkvm.c    | 37 ++++++++++++++++++++++++++++---
 arch/arm64/kvm/sys_regs.c         |  3 +++
 3 files changed, 39 insertions(+), 4 deletions(-)

base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b

Signature · 1 line
2.53.0.273.g2a3d683680-goog