mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
AMD/IOMMU: Fix passthrough following c/s d7cfeb7c13
"AMD/IOMMU: don't blindly allocate interrupt remapping tables" introduces a call at runtime from amd_iommu_add_device() to amd_iommu_set_intremap_table() which is still marked as __init. On one AMD Rome machine we have, this results in a crash the moment we try to use an SR-IOV VF in a VM. Reported-by: Jennifer Herbert <jennifer.herbert@citrix.com> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
3683290fc0
commit
aaef3d904b
1 file changed
+1
-1
@@ -112,7 +112,7 @@ void amd_iommu_set_root_page_table(struct amd_iommu_dte *dte,
|
||||
dte->v = valid;
|
||||
}
|
||||
|
||||
void __init amd_iommu_set_intremap_table(
|
||||
void amd_iommu_set_intremap_table(
|
||||
struct amd_iommu_dte *dte, const void *ptr,
|
||||
const struct amd_iommu *iommu, bool valid)
|
||||
{
|
||||
|
||||