Re: [PATCH v2 2/3] x86/APIC: avoid iommu_supports_x2apic() on error path

2021-10-25 Thread Roger Pau Monné
On Thu, Oct 21, 2021 at 11:58:37AM +0200, Jan Beulich wrote: > 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 s

[PATCH v2 2/3] x86/APIC: avoid iommu_supports_x2apic() on error path

2021-10-21 Thread Jan Beulich
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 --- v2: New. --- a/xen/arch/