All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] ARM virtio-pci initial support
@ 2023-11-15 11:26 Sergiy Kibrik
  2023-11-15 11:26 ` [RFC PATCH 1/6] libxl: Pass max_vcpus to Qemu in case of PVH domain (Arm) as well Sergiy Kibrik
                   ` (4 more replies)
  0 siblings, 5 replies; 30+ messages in thread
From: Sergiy Kibrik @ 2023-11-15 11:26 UTC (permalink / raw)
  To: xen-devel
  Cc: Oleksandr Tyshchenko, Sergiy Kibrik, Wei Liu, Anthony PERARD,
	Juergen Gross, Stefano Stabellini, Julien Grall, Bertrand Marquis,
	Michal Orzel, Volodymyr Babchuk

Hi,
In this patch series we introduce support of PCI devices emulated by Virtio 
on ARM platform. A guest system is presented with Virtio Host bridge device, through
which a number of emulated PCI devices (e.g. disk, network, graphic, audio etc)
can work with corresponding guests' subsystems.

For that purpose we add a new "pci" virtio transport mechanism in xl
configuration, in addition to present "mmio" mechanism.

Suitable MMIO and IRQ ranges are reverved, for guests' PCI accesses are trapped
and forwarded to IOREQ server to be handled outside of Xen. Also guest's DT
extended with PCI (#INTA..#INTD) interrupt mappings.

For now only supported combination of backends is when both PCI Host bridge
and all PCI devices behind it are emulated by the same single instance (i.e. Qemu).

The code was tested with QEMU backends, yet it aims to be extendable to support
stand-alone backends.

 -Sergiy

Oleksandr Tyshchenko (6):
  libxl: Pass max_vcpus to Qemu in case of PVH domain (Arm) as well
  xen/public: arch-arm: reserve resources for virtio-pci
  libxl/arm: Add basic virtio-pci support
  libxl/arm: Reuse generic PCI-IOMMU bindings for virtio-pci devices
  xen/arm: Intercept vPCI config accesses and forward them to emulator
  libxl: Add "backend_type" property for the Virtio devices

 docs/man/xl.cfg.5.pod.in              |  18 +-
 tools/libs/light/libxl_arm.c          | 351 ++++++++++++++++++++++++--
 tools/libs/light/libxl_create.c       |  18 +-
 tools/libs/light/libxl_dm.c           |  98 ++++++-
 tools/libs/light/libxl_internal.h     |   5 +
 tools/libs/light/libxl_types.idl      |  41 ++-
 tools/libs/light/libxl_virtio.c       | 119 +++++++--
 tools/xl/xl_parse.c                   |  39 +++
 xen/arch/arm/Kconfig                  |  10 +
 xen/arch/arm/domain.c                 |   2 +-
 xen/arch/arm/{ => include/asm}/vpci.h |  11 +
 xen/arch/arm/io.c                     |   8 +-
 xen/arch/arm/ioreq.c                  |  19 +-
 xen/arch/arm/vpci.c                   | 106 +++++++-
 xen/include/public/arch-arm.h         |  21 ++
 15 files changed, 797 insertions(+), 69 deletions(-)
 rename xen/arch/arm/{ => include/asm}/vpci.h (75%)

-- 
2.25.1



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

end of thread, other threads:[~2023-11-22  1:14 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15 11:26 [RFC PATCH 0/6] ARM virtio-pci initial support Sergiy Kibrik
2023-11-15 11:26 ` [RFC PATCH 1/6] libxl: Pass max_vcpus to Qemu in case of PVH domain (Arm) as well Sergiy Kibrik
2023-11-15 11:26 ` [RFC PATCH 2/6] xen/public: arch-arm: reserve resources for virtio-pci Sergiy Kibrik
2023-11-15 12:33   ` Julien Grall
2023-11-15 16:51     ` Oleksandr Tyshchenko
2023-11-15 17:31       ` Julien Grall
2023-11-15 18:14         ` Oleksandr Tyshchenko
2023-11-15 18:33           ` Julien Grall
2023-11-15 19:38             ` Oleksandr Tyshchenko
2023-11-15 19:56               ` Julien Grall
2023-11-17 13:19         ` Sergiy Kibrik
2023-11-17 18:24           ` Julien Grall
2023-11-15 23:28       ` Stefano Stabellini
2023-11-16 15:07         ` Volodymyr Babchuk
2023-11-16 15:12           ` Julien Grall
2023-11-16 15:26             ` Stewart Hildebrand
2023-11-16 15:58               ` Julien Grall
2023-11-16 16:53                 ` Volodymyr Babchuk
2023-11-16 17:27                   ` Julien Grall
2023-11-16 23:04           ` Stefano Stabellini
2023-11-17  0:23             ` Volodymyr Babchuk
2023-11-17  3:31         ` Stewart Hildebrand
2023-11-17  8:11           ` Oleksandr Tyshchenko
2023-11-21 19:12             ` Stewart Hildebrand
2023-11-22  1:14               ` Stefano Stabellini
2023-11-15 11:26 ` [RFC PATCH 3/6] libxl/arm: Add basic virtio-pci support Sergiy Kibrik
2023-11-15 11:26 ` [RFC PATCH 4/6] libxl/arm: Reuse generic PCI-IOMMU bindings for virtio-pci devices Sergiy Kibrik
2023-11-15 11:26 ` [RFC PATCH 5/6] xen/arm: Intercept vPCI config accesses and forward them to emulator Sergiy Kibrik
2023-11-15 12:45   ` Julien Grall
2023-11-15 23:30     ` 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.