[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 6/8] xen/arm: Fix mapping for PCI bridge mmio region
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Tue, 4 Feb 2025 13:54:04 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=IBmImMY45au6S/wSkAfDzPVwqKMv01abSxNI/zj+jYE=; b=KynIldwIVOc+u5R27l40IeHC4Sg049Mxh96fyOT6DaGUTym1CjuPUlj0+3OsIMIHaXSpEoZPA/iwn98C66FaP7PjobGLwwAktuISWbX5wfQpJMCxF6XlutBZCKPv3zWFjfXLhmP+9Jog9a3okPihSn0fwE4m6pahttVIZiJT8nFmx+KrioDcMgVpqTh4vONd3vijZiJ5iAFhSlV7pbaQ8KeTZo6plGVJBDEnrUf68YtWkVDW95MXiMzpZUqZpqpzItKwzevc9V9INdFDAnzjD5zdq06aeFqhJdGdECm/lx9sQx+W4KCROmJGWD6ffc/IcPzO0b7NlPNLLpxjVRysOQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SeH37IhJ8T2feiYadEw4MB0JRWwzu9PQvyBL5N5sV6z+xR7YV9laMUhpxzRsRI+WoysSrpYAJvRofd3/mBJxSIWPFc9IjsXqZFy1TWKaPAUktdBJfdpCWPvlQodHrnGH6IYUKZ8PC/mV2maqtvcT6q98n4jy/O1Mi4bWs2efreeLWhaWeX20be/5rnvD5KkI0xgQWuj2kcySU72Tx3hkFqHU7bHljLDpXmSCaGC5dKkkRW9Oz9bNbSL5+xnO4RjiFnf8KI9e9r6f023irnGsd6GwvHLnuMG0hnzfPEUGpvOAcaiRbl+h++Ur47EwqXoBuSbhdjMqRkB+7ZKvphRKfA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>
- Delivery-date: Tue, 04 Feb 2025 13:54:14 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHbdwxAffL4CCc3KUGafSgxW+bavw==
- Thread-topic: [PATCH v7 6/8] xen/arm: Fix mapping for PCI bridge mmio region
From: Rahul Singh <rahul.singh@xxxxxxx>
Current code skip the mapping for PCI bridge MMIO region to dom0 when
pci_passthrough_enabled flag is set. Mapping should be skip when
has_vpci(d) is enabled for the domain, as we need to skip the mapping
only when VPCI handler are registered for ECAM.
Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
---
This patch was originally picked up from [1]
v6->v7:
* add Julien's A-b
v5->v6:
* drop unrelated change in xen/arch/arm/domain_build.c:handle_linux_pci_domain()
v4->v5:
* new patch
changes since picking up from [1]:
* rebase on top of "dynamic node programming using overlay dtbo" series
* replace !is_pci_passthrough_enabled() check with !IS_ENABLED(CONFIG_HAS_PCI)
instead of removing
[1] https://lists.xenproject.org/archives/html/xen-devel/2023-07/msg00483.html
---
xen/arch/arm/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/arm/device.c b/xen/arch/arm/device.c
index 5610cddcba..25847d60ee 100644
--- a/xen/arch/arm/device.c
+++ b/xen/arch/arm/device.c
@@ -268,7 +268,7 @@ int handle_device(struct domain *d, struct dt_device_node
*dev, p2m_type_t p2mt,
.d = d,
.p2mt = p2mt,
.skip_mapping = !own_device ||
- (is_pci_passthrough_enabled() &&
+ (has_vpci(d) &&
(device_get_class(dev) == DEVICE_PCI_HOSTBRIDGE)),
.iomem_ranges = iomem_ranges,
.irq_ranges = irq_ranges
--
2.34.1
|