]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
AMD IOMMU: cover all functions of a device even if ACPI only tells us of func 0
authorJan Beulich <jbeulich@suse.com>
Tue, 26 Feb 2013 09:12:57 +0000 (10:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Feb 2013 09:12:57 +0000 (10:12 +0100)
commita90bc1471a74c42b9618f0ec3bc0cc0e76f0f5ee
tree5c75af097e21b953d77c5e67b3787b0a04af5c8e
parent642087032876b8805d8d645a6fbbe8a71ed0ef15
AMD IOMMU: cover all functions of a device even if ACPI only tells us of func 0

This ought to work as all functions of a device have the same place in
the bus topology, i.e. use the same IOMMU.

Also fix the type of ivrs_bdf_entries (when it's 'unsigned short' and
the last device found on a segment is ff:1f.x, it would otherwise end
up being zero).

And drop the bogus 'last_bdf' static variable, which conflicted anyway
with various functions' parameters.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_acpi.c
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/include/asm-x86/amd-iommu.h