Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: arm64: nv: trap forwarding bugs
@ 2026-11-18 15:29 Dan Carpenter
  2026-11-18 15:29 ` [PATCH 1/3] KVM: arm64: nv: Forward PIR_EL2, PIRE0_EL2 and POR_EL2 traps Dan Carpenter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2026-11-18 15:29 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: Catalin Marinas, Fuad Tabba, Joey Gouly, kvmarm, linux-arm-kernel,
	Mark Rutland, Oliver Upton, Steffen Eiden, Suzuki K Poulose,
	Will Deacon, Zenghui Yu, Karthik Bhargavan, Clément Blaudeau

This was detected as part of our Formal Analysis work at Pereq.

Regular KVM and nested virt traps have been getting out of sync.  Fix a
couple bugs and add a boot time check to prevent future bugs.

Dan Carpenter (3):
  KVM: arm64: nv: Forward PIR_EL2, PIRE0_EL2 and POR_EL2 traps
  KVM: arm64: nv: Forward CNTP_TVAL_EL02 and CNTV_TVAL_EL02 traps
  KVM: arm64: nv: Report EL2 registers with no trap forwarding

 arch/arm64/include/asm/kvm_host.h |  2 +-
 arch/arm64/kvm/emulate-nested.c   | 10 +++++++++-
 arch/arm64/kvm/sys_regs.c         | 23 +++++++++++++++++++++--
 3 files changed, 31 insertions(+), 4 deletions(-)

-- 
2.53.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-18 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 15:29 [PATCH 0/3] KVM: arm64: nv: trap forwarding bugs Dan Carpenter
2026-11-18 15:29 ` [PATCH 1/3] KVM: arm64: nv: Forward PIR_EL2, PIRE0_EL2 and POR_EL2 traps Dan Carpenter
2026-11-18 15:30 ` [PATCH 2/3] KVM: arm64: nv: Forward CNTP_TVAL_EL02 and CNTV_TVAL_EL02 traps Dan Carpenter
2026-11-18 15:30 ` [PATCH 3/3] KVM: arm64: nv: Report EL2 registers with no trap forwarding Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox