[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.7] x86/entry: Rearrange RESTORE_ALL to restore register in stack order
commit 160b53c824011b9ddb89e67f0f682f471335747d Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Wed Feb 14 11:16:32 2018 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Feb 14 11:16:32 2018 +0100 x86/entry: Rearrange RESTORE_ALL to restore register in stack order Results in a more predictable (i.e. linear) memory access pattern. No functional change. This is part of XSA-254. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> master commit: f85d105e27735f0e20aa30d77f03774f3ed55ae5 master date: 2018-01-05 19:57:08 +0000 --- xen/include/asm-x86/asm_defns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-x86/asm_defns.h b/xen/include/asm-x86/asm_defns.h index 6cfdaa1..e0e5836 100644 --- a/xen/include/asm-x86/asm_defns.h +++ b/xen/include/asm-x86/asm_defns.h @@ -310,7 +310,6 @@ static always_inline void stac(void) * @compat: R8-R15 don't need reloading */ .macro RESTORE_ALL adj=0 compat=0 - LOAD_C_CLOBBERED \compat .if !\compat movq UREGS_r15(%rsp),%r15 movq UREGS_r14(%rsp),%r14 @@ -319,6 +318,7 @@ static always_inline void stac(void) .endif LOAD_ONE_REG(bp, \compat) LOAD_ONE_REG(bx, \compat) + LOAD_C_CLOBBERED \compat subq $-(UREGS_error_code-UREGS_r15+\adj), %rsp .endm -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.7 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |