x86/CPUID: unconditionally set XEN_HVM_CPUID_IOMMU_MAPPINGS
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 19 Jan 2021 15:04:06 +0000 (16:04 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Jan 2021 15:04:06 +0000 (16:04 +0100)
commitb7f462872ab1e7de8d3e02f9e71dee11d0fd3560
tree36e8b01b23b83319d21bc90b3a0964d4a15dadb5
parent0f4fd0de7532c08bdd77a46f101e5ca1220cd163
x86/CPUID: unconditionally set XEN_HVM_CPUID_IOMMU_MAPPINGS

This is a revert of f5cfa0985673 plus a rework of the comment that
accompanies the setting of the flag so we don't forget why it needs to
be unconditionally set: it's indicating whether the version of Xen has
the original issue fixed and IOMMU entries are created for
grant/foreign maps.

If the flag is only exposed when the IOMMU is enabled the guest could
resort to use bounce buffers when running backends as it would assume
the underlying Xen version still has the bug present and thus
grant/foreign maps cannot be used with devices.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c