From 261ef8ccbd28526d69c3a6c5944709f81624741a Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 10 Mar 2020 15:27:56 +0100 Subject: [PATCH] x86: refine APIC ID restriction MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Roger Pau Monné --- xen/arch/x86/smpboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index 6c548b0b53..0e54bd14f3 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -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); -- 2.39.5