Skip to content

Commit 5b734b4

Browse files
committed
Merge tag 'for-linus-6.14-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fixes from Juergen Gross: "Three fixes for xen_hypercall_hvm() that was introduced in the 6.13 cycle" * tag 'for-linus-6.14-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: x86/xen: remove unneeded dummy push from xen_hypercall_hvm() x86/xen: add FRAME_END to xen_hypercall_hvm() x86/xen: fix xen_hypercall_hvm() to not clobber %rbx
2 parents 3cf0a98 + aaf5eef commit 5b734b4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

arch/x86/xen/xen-head.S

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ SYM_FUNC_START(xen_hypercall_hvm)
100100
push %r10
101101
push %r9
102102
push %r8
103-
#ifdef CONFIG_FRAME_POINTER
104-
pushq $0 /* Dummy push for stack alignment. */
105-
#endif
106103
#endif
107104
/* Set the vendor specific function. */
108105
call __xen_hypercall_setfunc
@@ -117,11 +114,8 @@ SYM_FUNC_START(xen_hypercall_hvm)
117114
pop %ebx
118115
pop %eax
119116
#else
120-
lea xen_hypercall_amd(%rip), %rbx
121-
cmp %rax, %rbx
122-
#ifdef CONFIG_FRAME_POINTER
123-
pop %rax /* Dummy pop. */
124-
#endif
117+
lea xen_hypercall_amd(%rip), %rcx
118+
cmp %rax, %rcx
125119
pop %r8
126120
pop %r9
127121
pop %r10
@@ -132,6 +126,7 @@ SYM_FUNC_START(xen_hypercall_hvm)
132126
pop %rcx
133127
pop %rax
134128
#endif
129+
FRAME_END
135130
/* Use correct hypercall function. */
136131
jz xen_hypercall_amd
137132
jmp xen_hypercall_intel

0 commit comments

Comments
 (0)