[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 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: Mon, 10 Feb 2025 10:30:45 +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=60nnA6HGaGxV4w+j+k1w+tAaB6L5I+A7oLDZirmwzsw=; b=qr28qa7rEn0ZF+OoRMxNjrrJ+y1ES2e47c1fwTwUiq/2Iiwn2kyH5givQXjIJPvEURHNxdt5JljEnbNmqjK7ON63q4i3+AsPChyB4qtXYqmZt5k9TzH8RFY3aC/61sswcnVviWWW7jpN+LUebj5jyNvjaed9YMq7gBa9p0lgeGES8CQl08/HK3GOJadEUKupuaS3q+YQqCzxHYasOvkj8zGTIALOKzJr7PzAz5Zh2TmFQvH+cHN7S7WiJ70VPBBEBw/Y6jwIDtF47rZX5NUIoP8Wfa+lTaBbvYSzPGjDkluXcFohFqrYJrXKgizkJmA2tWM/lXvaZrfDsD8az2Ft6A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rAzEGYMVo+n/lgBGCaB8GGScLGEPrsKK2a1p50UWl34uVAwp49sUOKKnC6iXA7r+sABEi1wG1GdL6sU6L/Pltf5qyiHjDb1z1v4ekfUzAIWqxQtED/q9ziFmJzdXuI6+PvnHat1SzMv3XxLctLzbidbihA+jlmUdXZMW2pGx/8QM5Rx7IBv+XHJP5JteMXDmof91FCFC6+88a+RI4qjZiwv6g941G9URkVcB1i9HOvchYPaz+LJ/bDgWicu8ZCBZKu5Tf+MwvfkFng6OT54h4yPZpFrgfYl19v5POWxlVdVMZ7gNOHlJA0vOxHTS/ZJJ2gC4PWA5FHlaQOwWrhXDlQ==
- 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: Mon, 10 Feb 2025 10:31:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHbe6bYpih0g1hVFU+mNaS3PRj2Mg==
- Thread-topic: [PATCH v8 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]
v7->v8:
* no change
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
|