mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
AMD/IOMMU: without XT, x2APIC needs to be forced into physical mode
An earlier change with the same title (commit1ba66a870e) altered only the path where x2apic_phys was already set to false (perhaps from the command line). The same of course needs applying when the variable wasn't modified yet from its initial value. Reported-by: Elliott Mitchell <ehem+xen@m5p.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> master commit:0d2686f6b6master date: 2023-03-21 09:23:25 +0100
This commit is contained in:
1 parent
54102e428b
commit
8e9690a225
1 file changed
+3
-3
@@ -239,11 +239,11 @@ const struct genapic *__init apic_x2apic_probe(void)
|
||||
if ( x2apic_phys < 0 )
|
||||
{
|
||||
/*
|
||||
* Force physical mode if there's no interrupt remapping support: The
|
||||
* ID in clustered mode requires a 32 bit destination field due to
|
||||
* Force physical mode if there's no (full) interrupt remapping support:
|
||||
* The ID in clustered mode requires a 32 bit destination field due to
|
||||
* the usage of the high 16 bits to hold the cluster ID.
|
||||
*/
|
||||
x2apic_phys = !iommu_intremap ||
|
||||
x2apic_phys = iommu_intremap != iommu_intremap_full ||
|
||||
(acpi_gbl_FADT.flags & ACPI_FADT_APIC_PHYSICAL);
|
||||
}
|
||||
else if ( !x2apic_phys )
|
||||
|
||||