Skip to content

Commit d3273de

Browse files
amlutobonzini
authored andcommitted
x86/asm/64: Drop __cacheline_aligned from struct x86_hw_tss
Historically, the entire TSS + io bitmap structure was cacheline aligned, but commit ca241c7 ("x86: unify tss_struct") changed it (presumably inadvertently) so that the fixed-layout hardware part is cacheline-aligned and the io bitmap is after the padding. This wastes 24 bytes (the hardware part should be 104 bytes, but this pads it to 128 bytes) and, serves no purpose, and causes sizeof(struct x86_hw_tss) to have a confusing value. Drop the pointless alignment. Signed-off-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 8c2e41f commit d3273de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ struct x86_hw_tss {
303303
u16 reserved5;
304304
u16 io_bitmap_base;
305305

306-
} __attribute__((packed)) ____cacheline_aligned;
306+
} __attribute__((packed));
307307
#endif
308308

309309
/*

0 commit comments

Comments
 (0)