[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1 1/2] xen/arm: pci: introduce PCI_PASSTHROUGH Kconfig option


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Tue, 20 Jun 2023 11:29:20 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PW8XXwxR3mhUCuU75aK6Miub4PizW0qiJ7ZMU8vXgGU=; b=UmWTtG7mKHA2oclHT/T0VpULlHadQdMll1vR1qG09g/I+Sh4B3uRMIPJlvMGOOHumLuMOExmmw12IQUe+thf45mihppT0PyjZpX+HVeaPxiMazNqsZzM5rW39jwDvHoyRDJNmWA6FV1ufH52WjM4FTYNT+JKA5pUX2SdSqpw/2QvpHGxxqFHlzqZO8/abR47oQxFUXA042pDqTDGgdqfhB2FKQi0Md5HZA0JvrJfZ5tMOs9787WWvXLb4AwzsWGOacT2cu3VzS42U70ydBFn9y42363ykQLWIu4L0qCIxp6jlykoenFMqeQL1qXfJE4UeDgljZjq7BF6bU+Ndrcp9Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HoRUYfhxmkYI1i5Bnkj/aM/soI3D7V2APNX1xiiq0HZIhmsGjzx/+jPNr9BZL3TR6IKSy/NbzQqBMBk3Sg/OGQz2trJ1RqWFfF6ORceXsHYJTZvYS4CD8P9neJE8o55ZQ7qTep+klFwfDh5jMm+u2OypjNaypguAZlxROMf7DKnEw9oGkX79elqjvFH7GjWvR/n+HGHj+Ex95RelbLeH1iIwRz90BZpTVLx5mkN/DkqwiNpEKOV9QbP+uEqS5Sc642A6rzkrchkt36gIWjbPXd0EC0GvVrmTfnEp5qpRniMfsk9hiU4DFh8oIWk7RVzKdfAQv1tUvYCY2glwK63PYQ==
  • Cc: Rahul Singh <rahul.singh@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "Oleksandr Tyshchenko" <oleksandr_tyshchenko@xxxxxxxx>, Artem Mygaiev <artem_mygaiev@xxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Delivery-date: Tue, 20 Jun 2023 15:30:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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.

Since PCI passthrough on ARM is still work in progress at this time, make it
depend on UNSUPPORTED.

Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
---
(cherry picked from commit 9a08f1f7ce28ec619640ba9ce11018bf443e9a0e from the
 downstream branch [1])

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-06/msg00863.html
---
 xen/arch/arm/Kconfig | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
index 61e581b8c2b0..3d22cd26a68c 100644
--- a/xen/arch/arm/Kconfig
+++ b/xen/arch/arm/Kconfig
@@ -184,6 +184,15 @@ config STATIC_SHM
        help
          This option enables statically shared memory on a dom0less system.
 
+config PCI_PASSTHROUGH
+       bool "PCI passthrough on ARM (UNSUPPORTED)" if UNSUPPORTED
+       depends on ARM_64
+       select HAS_PCI
+       select HAS_VPCI
+       default n
+       help
+         PCI device passthrough on ARM (UNSUPPORTED)
+
 endmenu
 
 menu "ARM errata workaround via the alternative framework"
-- 
2.41.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.