Skip to contentSkip to conversation

x86: refine APIC ID restriction

PATCH In review Jan Beulich 2 participants 2 messages Mar 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: refine APIC ID restriction

Now that we distinguish "restricted" and "full" interrupt remapping mode, the 8-bit-APIC-ID restriction also needs to be enforced for "restricted".

---
Obviously to go on top of "AMD/IOMMU: without XT, x2APIC needs to be forced into physical mode".

xen/arch/x86/smpboot.c +1 -1
@@ -1328,7 +1328,7 @@ int __cpu_up(unsigned int cpu)
         return -ENODEV;
 
     if ( (!x2apic_enabled && apicid >= APIC_ALL_CPUS) ||
-         (!iommu_intremap && (apicid >> 8)) )
+         (iommu_intremap != iommu_intremap_full && (apicid >> 8)) )
     {
         printk("Unsupported: APIC ID %#x in xAPIC mode w/o interrupt remapping\n",
                apicid);

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jan Beulich

Now that we distinguish "restricted" and "full" interrupt remapping mode, the 8-bit-APIC-ID restriction also needs to be enforced for "restricted".

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel