[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.8] x86/entry: Rearrange RESTORE_ALL to restore register in stack order
commit ef2464c56e8dab194cd956498c3d5215f1b6b97b Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Thu Feb 8 12:43:22 2018 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Feb 8 12:43:22 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 1c8d66c..7d740e7 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.8 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |