xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: compact supposedly unused entry point code
@ 2016-06-20 11:04 Jan Beulich
  2016-06-20 12:15 ` Andrew Cooper
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2016-06-20 11:04 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

No point in aligning entry points which aren't supposed to be used
anyway.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
TBD: Might consider simply using "andq $-15,%rsp", delivering an
uninitialized error code (which shouldn't matter).

--- a/xen/arch/x86/x86_64/entry.S
+++ b/xen/arch/x86/x86_64/entry.S
@@ -866,11 +866,11 @@ autogen_stubs: /* Automatically generate
 
         vec = 0
         .rept NR_VECTORS
-        ALIGN
 
         /* Common interrupts, heading towards do_IRQ(). */
         .if vec >= FIRST_DYNAMIC_VECTOR && vec != HYPERCALL_VECTOR && vec != LEGACY_SYSCALL_VECTOR
 
+        ALIGN
 1:      pushq $0
         movb  $vec,4(%rsp)
         jmp   common_interrupt




[-- Attachment #2: x86-compact-unknown-entry-points.patch --]
[-- Type: text/plain, Size: 767 bytes --]

x86: compact supposedly unused entry point code 

No point in aligning entry points which aren't supposed to be used
anyway.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
TBD: Might consider simply using "andq $-15,%rsp", delivering an
uninitialized error code (which shouldn't matter).

--- a/xen/arch/x86/x86_64/entry.S
+++ b/xen/arch/x86/x86_64/entry.S
@@ -866,11 +866,11 @@ autogen_stubs: /* Automatically generate
 
         vec = 0
         .rept NR_VECTORS
-        ALIGN
 
         /* Common interrupts, heading towards do_IRQ(). */
         .if vec >= FIRST_DYNAMIC_VECTOR && vec != HYPERCALL_VECTOR && vec != LEGACY_SYSCALL_VECTOR
 
+        ALIGN
 1:      pushq $0
         movb  $vec,4(%rsp)
         jmp   common_interrupt

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-21 17:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20 11:04 [PATCH] x86: compact supposedly unused entry point code Jan Beulich
2016-06-20 12:15 ` Andrew Cooper
2016-06-20 12:48   ` Jan Beulich
2016-06-20 12:54     ` Andrew Cooper
2016-06-20 13:49       ` Jan Beulich
2016-06-20 13:58         ` Andrew Cooper
2016-06-20 14:04           ` Jan Beulich
2016-06-21 17:47             ` Andrew Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).