mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/arm: Fix mapping for PCI bridge mmio region
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@arm.com> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> Acked-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
1 parent
8d4d6abffe
commit
2fae94269e
1 file changed
+1
-1
@@ -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
|
||||
|
||||