All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Fix io accessors for KVM
@ 2025-06-18  6:58 Ilias Apalodimas
  2025-06-18  6:58 ` [PATCH v2 1/3] nxp: Prepare macros for KVM changes Ilias Apalodimas
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ilias Apalodimas @ 2025-06-18  6:58 UTC (permalink / raw)
  To: trini
  Cc: jerome.forissier, mikko.rapeli, Ilias Apalodimas,
	Rayagonda Kokatanur, Tuomas Tynkkynen, Jagan Teki, Casey Connolly,
	Tien Fong Chee, Simon Glass, Patrick Rudolph, Liya Huang,
	Boyan Karatotev, Alif Zakuan Yuslaimi, Oliver Gaskell,
	Duje Mihanović, Heinrich Schuchardt, Raymond Mao,
	Patrick Delaunay, Ashok Reddy Soma, Venkatesh Yadav Abbarapu,
	Marek Vasut, u-boot

Instructions that lead ito an exception in the hypervisor can't modify two
CPU registers at once for the ARM ISA.

These instructions cannot be emulated by KVM as they do not produce
syndrome information data that KVM can use to infer the destination
register, the faulting address, whether it was a load or store, or
if it's a 32 or 64 bit general-purpose register.
As a result an external abort is injected from QEMU, via ext_dabt_pending.

Patch #1 prepares some function for the modified macros
Patch #2 modifies the macros
Patch #3 enables the functionality for armv7/8 QEMU

Changes since v1:
- Split the function modification in its own patch
- Don't limit the changes to v8 only

Ilias Apalodimas (3):
  nxp: Prepare macros for KVM changes
  arm: io.h: Fix io accessors for KVM
  qemu: arm: Enable virtualizable IO accesors

 arch/arm/Kconfig             |  12 +++
 arch/arm/include/asm/io.h    | 152 ++++++++++++++++++++++++++---------
 configs/qemu_arm64_defconfig |   1 +
 configs/qemu_arm_defconfig   |   1 +
 drivers/spi/fsl_dspi.c       |   6 +-
 include/fsl_ifc.h            |  24 +++---
 6 files changed, 142 insertions(+), 54 deletions(-)

--
2.43.0


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

end of thread, other threads:[~2025-06-27 19:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18  6:58 [PATCH v2 0/3] Fix io accessors for KVM Ilias Apalodimas
2025-06-18  6:58 ` [PATCH v2 1/3] nxp: Prepare macros for KVM changes Ilias Apalodimas
2025-06-18 14:07   ` Tom Rini
2025-06-18  6:58 ` [PATCH v2 2/3] arm: io.h: Fix io accessors for KVM Ilias Apalodimas
2025-06-18  6:58 ` [PATCH v2 3/3] qemu: arm: Enable virtualizable IO accessors Ilias Apalodimas
2025-06-18  9:59 ` [PATCH v2 0/3] Fix io accessors for KVM Mikko Rapeli
2025-06-18 11:03 ` Jerome Forissier
2025-06-18 12:04   ` Ilias Apalodimas
2025-06-27 19:10 ` Tom Rini

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.