Now that we distinguish "restricted" and "full" interrupt remapping
mode, the 8-bit-APIC-ID restriction also needs to be enforced for
"restricted".
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
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);