]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
AMD/IOMMU: Fix passthrough following c/s d7cfeb7c13e
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Nov 2019 20:46:08 +0000 (20:46 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Nov 2019 13:08:10 +0000 (13:08 +0000)
"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>
xen/drivers/passthrough/amd/iommu_map.c

index 03c1ad4dc5ded6e0a352977e80003bf555fee5a4..cd5c7de7c5acfcd0a38462903d86819b448ed093 100644 (file)
@@ -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)
 {