From: Bertrand Marquis <bertrand.marquis@arm.com>
To: xen-devel@lists.xenproject.org
Cc: iwj@xenproject.org, sstabellini@kernel.org,
"Paul Durrant" <paul@xen.org>, "Jan Beulich" <jbeulich@suse.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
"Julien Grall" <julien@xen.org>,
"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
"George Dunlap" <george.dunlap@citrix.com>,
"Anthony PERARD" <anthony.perard@citrix.com>,
"Juergen Gross" <jgross@suse.com>
Subject: [PATCH v8 0/5] PCI devices passthrough on Arm
Date: Fri, 15 Oct 2021 17:51:40 +0100 [thread overview]
Message-ID: <cover.1634315461.git.bertrand.marquis@arm.com> (raw)
Hello All,
This serie is a follow up on Rahul serie where we included various fixes
required after review on the mailing list and a new patch to move some
of the x86 ecam related code to the common vpci code.
Most of the patches of the original serie have been merged and this
serie includes only 2 of the original patches reworked and 3 new patches:
Move some ECAM related functions from x86 to generic vpci
implementation:
- move vcpi mmcfg_{read/write} and vpci_access_allowed to common vpci.c.
- use ecam instead of mmcfg in common code.
Enable the existing x86 virtual PCI support for ARM:
- Add VPCI trap handler for each of the PCI device added for config
space access.
- Register the trap handler in XEN for each of the host bridge PCI ECAM
config space access.
Modify libxl function to take the whole domain config as argument:
- libxl__arch_domain_init_hw_description
- libxl__prepare_dt
Emulated PCI device tree node in libxl:
- Create a virtual PCI device tree node in libxl to enable the guest OS
to discover the virtual PCI during guest boot.
The patch modifying xc_domain_ioport_permission has been removed from
the serie.
Bertrand Marquis (1):
xen/vpci: Move ecam access functions to common code
Michal Orzel (2):
tools/libxl: Modify libxl__arch_domain_init_hw_description...
tools/libxl_arm: Modify libxl__prepare_dtb...
Rahul Singh (2):
xen/arm: Enable the existing x86 virtual PCI support for ARM
arm/libxl: Emulated PCI device tree node in libxl
tools/libs/light/libxl_arch.h | 2 +-
tools/libs/light/libxl_arm.c | 111 +++++++++++++++++++++++++++++++-
tools/libs/light/libxl_create.c | 5 ++
tools/libs/light/libxl_dom.c | 2 +-
tools/libs/light/libxl_x86.c | 2 +-
xen/arch/arm/Makefile | 1 +
xen/arch/arm/domain.c | 4 ++
xen/arch/arm/vpci.c | 77 ++++++++++++++++++++++
xen/arch/arm/vpci.h | 36 +++++++++++
xen/arch/x86/hvm/io.c | 46 ++-----------
xen/drivers/passthrough/pci.c | 13 ++++
xen/drivers/vpci/header.c | 2 +-
xen/drivers/vpci/vpci.c | 64 ++++++++++++++++++
xen/include/asm-arm/domain.h | 1 +
xen/include/asm-x86/pci.h | 2 -
xen/include/public/arch-arm.h | 17 +++++
xen/include/xen/pci.h | 2 +
xen/include/xen/vpci.h | 12 ++++
18 files changed, 349 insertions(+), 50 deletions(-)
create mode 100644 xen/arch/arm/vpci.c
create mode 100644 xen/arch/arm/vpci.h
--
2.25.1
next reply other threads:[~2021-10-15 16:52 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 16:51 Bertrand Marquis [this message]
2021-10-15 16:51 ` [PATCH v8 1/5] xen/vpci: Move ecam access functions to common code Bertrand Marquis
2021-10-15 16:51 ` [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM Bertrand Marquis
2021-10-15 17:25 ` Julien Grall
2021-10-15 17:33 ` Bertrand Marquis
2021-10-15 18:38 ` Julien Grall
2021-10-15 19:47 ` Stefano Stabellini
2021-10-16 10:28 ` Roger Pau Monné
2021-10-18 7:09 ` Jan Beulich
2021-10-18 10:38 ` [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM [and 1 more messages] Ian Jackson
2021-10-18 10:47 ` Bertrand Marquis
2021-10-18 11:04 ` Jan Beulich
2021-10-18 7:51 ` [PATCH v8 2/5] xen/arm: Enable the existing x86 virtual PCI support for ARM Jan Beulich
2021-10-18 8:05 ` Bertrand Marquis
2021-10-18 7:47 ` Jan Beulich
2021-10-18 8:03 ` Roger Pau Monné
2021-10-18 8:38 ` Jan Beulich
2021-10-18 10:06 ` Oleksandr Andrushchenko
2021-10-18 10:11 ` Bertrand Marquis
2021-10-18 10:29 ` Jan Beulich
2021-10-18 14:07 ` Oleksandr Andrushchenko
2021-10-18 14:19 ` Jan Beulich
2021-10-18 14:37 ` Oleksandr Andrushchenko
2021-10-18 15:15 ` Jan Beulich
2021-10-15 16:51 ` [PATCH v8 3/5] tools/libxl: Modify libxl__arch_domain_init_hw_description Bertrand Marquis
2021-10-15 16:51 ` [PATCH v8 4/5] tools/libxl_arm: Modify libxl__prepare_dtb Bertrand Marquis
2021-10-15 16:51 ` [PATCH v8 5/5] arm/libxl: Emulated PCI device tree node in libxl Bertrand Marquis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1634315461.git.bertrand.marquis@arm.com \
--to=bertrand.marquis@arm.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=iwj@xenproject.org \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=paul@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.