[PATCH 4.14 22/26] iommu/amd: Fix legacy interrupt remapping for x2APIC-enabled system