summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/paravirt.h
diff options
context:
space:
mode:
authorHou Wenlong <houwenlong.hwl@antgroup.com>2023-06-09 17:45:32 +0800
committerBorislav Petkov (AMD) <bp@alien8.de>2023-11-13 12:43:50 +0100
commitfe22bc430c9d24394e541e16e0941a075f02fcb7 (patch)
tree2c63b96515832ce7962ccd7be250c84952e01f6e /arch/x86/include/asm/paravirt.h
parent5c22c4726e4a9c6b2e182c0b21c2d3dd63f608c4 (diff)
x86/paravirt: Make the struct paravirt_patch_site packed
Similar to struct alt_instr, make the struct paravirt_patch_site packed and get rid of all the .align directives and save 2 bytes for one PARA_SITE entry on X86_64. [ bp: Massage commit message. ] Suggested-by: Nadav Amit <namit@vmware.com> Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/6dcb20159ded36586c5f7f2ae159e4e030256627.1686301237.git.houwenlong.hwl@antgroup.com
Diffstat (limited to 'arch/x86/include/asm/paravirt.h')
-rw-r--r--arch/x86/include/asm/paravirt.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h
index d9384e9d97f6..693c61dbdd9c 100644
--- a/arch/x86/include/asm/paravirt.h
+++ b/arch/x86/include/asm/paravirt.h
@@ -748,11 +748,9 @@ void native_pv_lock_init(void) __init;
ops; \
772:; \
.pushsection .parainstructions,"a"; \
- .align 4; \
.long 771b-.; \
.byte ptype; \
.byte 772b-771b; \
- .align 4; \
.popsection