Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
xen.6649
5a4fd894-1-x86-rearrange-RESTORE_ALL-to-restore...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 5a4fd894-1-x86-rearrange-RESTORE_ALL-to-restore-in-stack-order.patch of Package xen.6649
# Commit f85d105e27735f0e20aa30d77f03774f3ed55ae5 # Date 2018-01-05 19:57:08 +0000 # Author Andrew Cooper <andrew.cooper3@citrix.com> # Committer Andrew Cooper <andrew.cooper3@citrix.com> 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@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> --- a/xen/include/asm-x86/asm_defns.h +++ b/xen/include/asm-x86/asm_defns.h @@ -280,7 +280,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 @@ -289,6 +288,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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor