[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v8] xen/arm: pci: introduce PCI_PASSTHROUGH Kconfig option
From: Rahul Singh <rahul.singh@xxxxxxx> Setting CONFIG_PCI_PASSTHROUGH=y will enable PCI passthrough on ARM, even though the feature is not yet complete in the current upstream codebase. The purpose of this is to make it easier to enable the necessary configs (HAS_PCI, HAS_VPCI) for testing and development of PCI passthrough on ARM, and to build it in CI. Since PCI passthrough on ARM is still work in progress at this time, make it depend on EXPERT. Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx> --- The alpine-3.18-gcc-arm64-randconfig CI job should pick up the new config option, but if we wanted it to be built more consistently in CI we could add CONFIG_PCI_PASSTHROUGH=y to one of the arm jobs in automation/gitlab-ci/build.yaml, e.g. alpine-3.18-gcc-debug-arm64. v7->v8: * remove select HAS_VPCI as HAS_VPCI_GUEST_SUPPORT already does so * move select HAS_PCI to HAS_VPCI in common * move remaining selects under config ARM_64 * add HAS_PASSTHROUGH * remove "default n" since it is redundant v6->v7: * rebase * send patch separately from series [3] * add HAS_VPCI_GUEST_SUPPORT since it's upstream now * drop Julien's A-b due to changes and was given several releases ago v5->v6: * no change v4->v5: * no change v3->v4: * no change v2->v3: * add Julien's A-b v1->v2: * drop "ARM" naming since it is already in an ARM category * depend on EXPERT instead of UNSUPPORTED Changes from downstream to v1: * depends on ARM_64 (Stefano) * Don't select HAS_VPCI_GUEST_SUPPORT since this config option is not currently used in the upstream codebase. This will want to be re-added here once the vpci series [2] is merged. * Don't select ARM_SMMU_V3 since this option can already be selected independently. While PCI passthrough on ARM depends on an SMMU, it does not depend on a particular version or variant of an SMMU. * Don't select HAS_ITS since this option can already be selected independently. HAS_ITS may want to be added here once the MSI series [1] is merged. * Don't select LATE_HWDOM since this option is unrelated to PCI passthrough. [1] https://gitlab.com/xen-project/people/bmarquis/xen-arm-poc/-/commits/poc/pci-passthrough [2] https://lists.xenproject.org/archives/html/xen-devel/2023-10/msg00660.html [3] https://lore.kernel.org/xen-devel/20231113222118.825758-1-stewart.hildebrand@xxxxxxx/T/#t (cherry picked from commit 9a08f1f7ce28ec619640ba9ce11018bf443e9a0e from the downstream branch [1]) --- xen/arch/arm/Kconfig | 8 ++++++++ xen/drivers/Kconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index 3f25da3ca5fd..95a2cd3d006d 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -8,6 +8,8 @@ config ARM_64 depends on !ARM_32 select 64BIT select HAS_FAST_MULTIPLY + select HAS_VPCI_GUEST_SUPPORT if PCI_PASSTHROUGH + select HAS_PASSTHROUGH if PCI_PASSTHROUGH config ARM def_bool y @@ -258,6 +260,12 @@ config PARTIAL_EMULATION source "arch/arm/firmware/Kconfig" +config PCI_PASSTHROUGH + bool "PCI passthrough" if EXPERT + depends on ARM_64 + help + This option enables PCI device passthrough + endmenu menu "ARM errata workaround via the alternative framework" diff --git a/xen/drivers/Kconfig b/xen/drivers/Kconfig index 20050e9bb8b3..d42314bb1904 100644 --- a/xen/drivers/Kconfig +++ b/xen/drivers/Kconfig @@ -14,6 +14,7 @@ source "drivers/video/Kconfig" config HAS_VPCI bool + select HAS_PCI config HAS_VPCI_GUEST_SUPPORT bool base-commit: 229a11aac7bf52f4532ab732ed10f173bd332cd0 -- 2.49.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |