All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH stable v5.4 0/3] KVM: arm64: Fix AT instruction handling
@ 2020-09-01  9:49 Andre Przywara
  2020-09-01  9:49 ` [PATCH stable v5.4 1/3] KVM: arm64: Add kvm_extable for vaxoricism code Andre Przywara
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andre Przywara @ 2020-09-01  9:49 UTC (permalink / raw)
  To: stable; +Cc: Marc Zyngier, James Morse, Catalin Marinas

In some architectural corner cases, AT instructions can generate an
exception, which KVM is not really ready to handle properly.
Teach the code to handle this situation gracefully.

This is a backport of the respective upstream patches to v5.4(.61).
James prepared these already, but we were lacking the upstream commit ID.
I am sending this on his behalf, since he is off this week.

The last two of the patches were tagged Cc: stable already, but did
not apply cleanly, hence this specific backport.

Cheers,
Andre.

James Morse (3):
  KVM: arm64: Add kvm_extable for vaxoricism code
  KVM: arm64: Survive synchronous exceptions caused by AT instructions
  KVM: arm64: Set HCR_EL2.PTW to prevent AT taking synchronous exception

 arch/arm64/include/asm/kvm_arm.h |  3 +-
 arch/arm64/include/asm/kvm_asm.h | 43 +++++++++++++++++++++
 arch/arm64/kernel/vmlinux.lds.S  |  8 ++++
 arch/arm64/kvm/hyp/entry.S       | 15 +++++---
 arch/arm64/kvm/hyp/hyp-entry.S   | 65 ++++++++++++++++++++------------
 arch/arm64/kvm/hyp/switch.c      | 39 +++++++++++++++++--
 6 files changed, 138 insertions(+), 35 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2020-09-01 15:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-01  9:49 [PATCH stable v5.4 0/3] KVM: arm64: Fix AT instruction handling Andre Przywara
2020-09-01  9:49 ` [PATCH stable v5.4 1/3] KVM: arm64: Add kvm_extable for vaxoricism code Andre Przywara
2020-09-01 11:12   ` Marc Zyngier
2020-09-01 11:16     ` Catalin Marinas
2020-09-01 11:17     ` André Przywara
2020-09-01 11:54       ` Marc Zyngier
2020-09-01 15:03       ` Greg KH
2020-09-01  9:49 ` [PATCH stable v5.4 2/3] KVM: arm64: Survive synchronous exceptions caused by AT instructions Andre Przywara
2020-09-01  9:49 ` [PATCH stable v5.4 3/3] KVM: arm64: Set HCR_EL2.PTW to prevent AT taking synchronous exception Andre Przywara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.