[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] x86/defconfig: add CONFIG_IRQ_REMAP
- To: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>, Shashank Balaji <shashank.mahadasyam@xxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, x86@xxxxxxxxxx, "H. Peter Anvin" <hpa@xxxxxxxxx>, Suresh Siddha <suresh.b.siddha@xxxxxxxxx>, "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx>, Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>, Wei Liu <wei.liu@xxxxxxxxxx>, Dexuan Cui <decui@xxxxxxxxxxxxx>, Long Li <longli@xxxxxxxxxxxxx>, Ajay Kaher <ajay.kaher@xxxxxxxxxxxx>, Alexey Makhalov <alexey.makhalov@xxxxxxxxxxxx>, Broadcom internal kernel review list <bcm-kernel-feedback-list@xxxxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Mon, 2 Feb 2026 12:12:32 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SbwzAqZcMEW0niUhQdOdFX+lHEGbMtAeLvsMnYNdaJM=; b=da+p/5veqKXhrQiolK+DTYlnx27v7vI4RaIuGUUVICqdE/UkzgN1kqXj3MEx9Rl+JE6J5pTy+vyxRv3e+IwgVlCAI6KMVHBkU3bNn7TDJaUaLlDuqzoTm6wyyM4cLN8f7fbXLCn6eABOPlMYBY/v4SoqmtKde9aFTaSuUSGuqguCUJ8dobq0B8iPIEusODQKBxw8apSFNwCwau5rNz/Xg3JT0awMbYik5usyxcW61A438WKpzbgS8WdhxQ0QVO/P/EwcGXKXN8U2DGIAFUrY5csUtE7Bkj5T0GChWHWeCKLSPFlBPYBE5P6xJ277nlkuR0YR+7VP4rEGhlGoDQoVQA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lhal1vAdbceplBcbXx0qpremQ7zc4O0nnCfxv5Y9yRx1ByLy79RFNkKEot+UY7o21BF+4nyHDzAzMq1yN0eyhndHo8CnUvv7FQClBT5mKa/WPku1M8Ihn0EfS6V1peKxTiaTyeK7aeUQz6NRLCPOWEkdEAmljZLSqIRICY9aoilCr92rS+ylo0fW7k0A8rXWlECn5TWaVMvzeDa6NKJ/JLJPiW+/tyvfINe7yQOrOAybcCVyC3dKPsOWhLakpYvvIVyc6q6DNgz4UzXszDKXCinHGclH9kNXXJInoCpV1E6jIaFbIktL+xEfhNBXkEbgZ/UwEF5Op8hSavUWs6/X2Q==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-hyperv@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxx, jailhouse-dev@xxxxxxxxxxxxxxxx, kvm@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, Rahul Bukte <rahul.bukte@xxxxxxxx>, Daniel Palmer <daniel.palmer@xxxxxxxx>, Tim Bird <tim.bird@xxxxxxxx>
- Delivery-date: Mon, 02 Feb 2026 12:12:52 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 02/02/2026 11:54 am, Jan Kiszka wrote:
> On 02.02.26 12:35, Andrew Cooper wrote:
>> On 02/02/2026 9:51 am, Shashank Balaji wrote:
>>> Interrupt remapping is an architectural dependency of x2apic, which is
>>> already
>>> enabled in the defconfig.
>> There is no such dependency. VMs for example commonly have x2APIC and
>> no IOMMU, and even native system with fewer than 254 CPUs does not need
>> interrupt remapping for IO-APIC interrupts to function correctly.
>>
> It is theoretically possible with less than 254 CPUs, and that is why
> virtualization uses it, but the Intel SDM clearly states:
>
> "Routing of device interrupts to local APIC units operating in x2APIC
> mode requires use of the interrupt-remapping architecture specified in
> the Intel® Virtualization Technology for Directed I/O (Revision 1.3
> and/or later versions)."
This statement is misleading and has been argued over before. It's
missing the key word "all".
What IR gets you in this case is the ability to target CPU 255 and higher.
The OS-side access mechanism (xAPIC MMIO vs x2APIC MSRs) has no baring
on how external interrupts are handled in the fabric.
There are plenty of good reasons to have Interrupt Remapping enabled
when available, but it is not a hard requirement architecturally.
~Andrew
|