Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/APIC: avoid iommu_supports_x2apic() on error path
The value it returns may change from true to false in case iommu_enable_x2apic() fails and, as a side effect, clears iommu_intremap (as can happen at least on AMD). Latch the return value from the first invocation to replace the second one. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com> Release-Acked-by: Ian Jackson <iwj@xenproject.org>
- Loading branch information