amd/iommu: skip host bridge devices when updating IOMMU page tables
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 30 Nov 2018 11:10:00 +0000 (12:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Nov 2018 11:10:00 +0000 (12:10 +0100)
commitfad6ba64a8c98bebb9374f390cc255fac05237ab
treeea13e3b08cf96148521b1c0ee248860bd71106a8
parentb6bd02b7a877f9fac2de69e64d8245d56f92ab25
amd/iommu: skip host bridge devices when updating IOMMU page tables

Host bridges are not behind an IOMMU, and are already special cased and
skipped in amd_iommu_add_device. Apply the same special casing when
updating page tables.

This is required or else update_paging_mode will fail and return an
error to the caller (amd_iommu_{un}map_page) which will destroy the
domain.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/iommu_map.c