Skip to content

Commit 9aee5f8

Browse files
nicstangeKAGA-KOKO
authored andcommitted
x86/irq: Demote irq_cpustat_t::__softirq_pending to u16
An upcoming patch will extend KVM's L1TF mitigation in conditional mode to also cover interrupts after VMEXITs. For tracking those, stores to a new per-cpu flag from interrupt handlers will become necessary. In order to improve cache locality, this new flag will be added to x86's irq_cpustat_t. Make some space available there by shrinking the ->softirq_pending bitfield from 32 to 16 bits: the number of bits actually used is only NR_SOFTIRQS, i.e. 10. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Nicolai Stange <nstange@suse.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 5b6ccc6 commit 9aee5f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/hardirq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <linux/irq.h>
77

88
typedef struct {
9-
unsigned int __softirq_pending;
9+
u16 __softirq_pending;
1010
unsigned int __nmi_count; /* arch dependent */
1111
#ifdef CONFIG_X86_LOCAL_APIC
1212
unsigned int apic_timer_irqs; /* arch dependent */

0 commit comments

Comments
 (0)