Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit f5a3562

Browse files
Jacob PanKAGA-KOKO
authored andcommitted
x86/irq: Reserve a per CPU IDT vector for posted MSIs
When posted MSI is enabled, all device MSIs are multiplexed into a single notification vector. MSI handlers will be de-multiplexed at run-time by system software without IDT delivery. Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240423174114.526704-6-jacob.jun.pan@linux.intel.com
1 parent 7fec07f commit f5a3562

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/x86/include/asm/irq_vectors.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,16 @@
9797

9898
#define LOCAL_TIMER_VECTOR 0xec
9999

100+
/*
101+
* Posted interrupt notification vector for all device MSIs delivered to
102+
* the host kernel.
103+
*/
104+
#define POSTED_MSI_NOTIFICATION_VECTOR 0xeb
105+
100106
#define NR_VECTORS 256
101107

102108
#ifdef CONFIG_X86_LOCAL_APIC
103-
#define FIRST_SYSTEM_VECTOR LOCAL_TIMER_VECTOR
109+
#define FIRST_SYSTEM_VECTOR POSTED_MSI_NOTIFICATION_VECTOR
104110
#else
105111
#define FIRST_SYSTEM_VECTOR NR_VECTORS
106112
#endif

0 commit comments

Comments
 (0)