All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add support for MSI injection on Arm
@ 2025-04-14  9:51 Mykyta Poturai
  2025-04-14  9:51 ` [PATCH v2 1/2] arm: vgic: Add the ability to trigger MSIs from the Hypervisor Mykyta Poturai
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Mykyta Poturai @ 2025-04-14  9:51 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org
  Cc: Mykyta Poturai, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Michal Orzel, Volodymyr Babchuk, Anthony PERARD,
	Juergen Gross, Andrew Cooper, Jan Beulich, Roger Pau Monné

This series adds the base support for MSI injection on Arm. This is
needed to streamline virtio-pci interrupt triggering.

With this patches, MSIs can be triggered in guests by issuing the new
DM op, inject_msi2. This op is similar to inject_msi, but it allows
to specify the source id of the MSI.

We chose the approach of adding a new DM op instead of using the pad
field of inject_msi because we have no clear way of distinguishing
between set and unset pad fields. New implementations also adds flags
field to clearly specify if the SBDF is set.

Patches were tested on QEMU with QEMU virtio-pci backends, with 
virtio-pci patches and patches for ITS support for DomUs applied.

Branch with all relevant Xen patches:
https://github.com/Deedone/xen/tree/4.20-dev%2Bvirtio

Branch with all relevant QEMU patches:
https://github.com/Deedone/qemu/tree/virtio-msi2

Mykyta Poturai (2):
  arm: vgic: Add the ability to trigger MSIs from the Hypervisor
  xen/dm: arm: Introduce inject_msi2 DM op

 tools/include/xendevicemodel.h               | 14 ++++++++++++++
 tools/libs/devicemodel/core.c                | 20 ++++++++++++++++++++
 tools/libs/devicemodel/libxendevicemodel.map |  5 +++++
 xen/arch/arm/dm.c                            | 17 +++++++++++++++++
 xen/arch/arm/include/asm/vgic.h              | 11 +++++++++++
 xen/arch/arm/vgic-v3-its.c                   | 19 +++++++++++++++++++
 xen/arch/x86/hvm/dm.c                        | 18 ++++++++++++++++++
 xen/include/public/hvm/dm_op.h               | 18 ++++++++++++++++++
 8 files changed, 122 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2025-04-16 21:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14  9:51 [PATCH v2 0/2] Add support for MSI injection on Arm Mykyta Poturai
2025-04-14  9:51 ` [PATCH v2 1/2] arm: vgic: Add the ability to trigger MSIs from the Hypervisor Mykyta Poturai
2025-04-14 11:04   ` Julien Grall
2025-04-14  9:51 ` [PATCH v2 2/2] xen/dm: arm: Introduce inject_msi2 DM op Mykyta Poturai
2025-04-16 15:16   ` Jan Beulich
2025-04-14 10:46 ` [PATCH v2 0/2] Add support for MSI injection on Arm Julien Grall
2025-04-15 22:40   ` Stefano Stabellini
2025-04-16  8:37     ` Mykyta Poturai
2025-04-16 10:38       ` Julien Grall
2025-04-16 21:50         ` Stefano Stabellini

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.