[PATCH] x86/IRQ: use LOCK-free bit setting in init_irq_data()

Jan Beulich posted 1 patch 6 days, 8 hours ago
Failed in applying to current master (apply log)
[PATCH] x86/IRQ: use LOCK-free bit setting in init_irq_data()
Posted by Jan Beulich 6 days, 8 hours ago
Much like done later in the function, syscall and hypercall vectors can
have their bits set without use of LOCKed accesses.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/irq.c
+++ b/xen/arch/x86/irq.c
@@ -450,12 +450,12 @@ int __init init_irq_data(void)
 
 #ifdef CONFIG_PV
     /* Never allocate the Linux/BSD fast-trap vector. */
-    set_bit(LEGACY_SYSCALL_VECTOR, used_vectors);
+    __set_bit(LEGACY_SYSCALL_VECTOR, used_vectors);
 #endif
 
 #ifdef CONFIG_PV32
     /* Never allocate the hypercall vector. */
-    set_bit(HYPERCALL_VECTOR, used_vectors);
+    __set_bit(HYPERCALL_VECTOR, used_vectors);
 #endif
     
     /*
Re: [PATCH] x86/IRQ: use LOCK-free bit setting in init_irq_data()
Posted by Andrew Cooper 6 days, 8 hours ago
On 12/11/2025 3:43 pm, Jan Beulich wrote:
> Much like done later in the function, syscall and hypercall vectors can
> have their bits set without use of LOCKed accesses.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>