diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-02-26 10:12:57 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-02-26 10:12:57 +0100 |
commit | a90bc1471a74c42b9618f0ec3bc0cc0e76f0f5ee (patch) | |
tree | 5c75af097e21b953d77c5e67b3787b0a04af5c8e /xen/include/asm-x86/amd-iommu.h | |
parent | 642087032876b8805d8d645a6fbbe8a71ed0ef15 (diff) | |
download | xen-a90bc1471a74c42b9618f0ec3bc0cc0e76f0f5ee.tar.gz xen-a90bc1471a74c42b9618f0ec3bc0cc0e76f0f5ee.tar.bz2 xen-a90bc1471a74c42b9618f0ec3bc0cc0e76f0f5ee.zip |
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>
Diffstat (limited to 'xen/include/asm-x86/amd-iommu.h')
-rw-r--r-- | xen/include/asm-x86/amd-iommu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/amd-iommu.h b/xen/include/asm-x86/amd-iommu.h index 66c1ebaa14..54f7e56fc5 100644 --- a/xen/include/asm-x86/amd-iommu.h +++ b/xen/include/asm-x86/amd-iommu.h @@ -125,7 +125,7 @@ struct ivrs_mappings { u8 device_flags; }; -extern unsigned short ivrs_bdf_entries; +extern unsigned int ivrs_bdf_entries; struct ivrs_mappings *get_ivrs_mappings(u16 seg); int iterate_ivrs_mappings(int (*)(u16 seg, struct ivrs_mappings *)); |