diff options
author | Andi Kleen <[email protected]> | 2018-01-17 14:53:28 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2018-01-19 16:31:30 +0100 |
commit | 3f7d875566d8e79c5e0b2c9a413e91b2c29e0854 (patch) | |
tree | 0d0039aae333d220686378a027e38273c133e856 /scripts/documentation-file-ref-check | |
parent | 98f0fceec7f84d80bc053e49e596088573086421 (diff) |
x86/retpoline: Optimize inline assembler for vmexit_fill_RSB
The generated assembler for the C fill RSB inline asm operations has
several issues:
- The C code sets up the loop register, which is then immediately
overwritten in __FILL_RETURN_BUFFER with the same value again.
- The C code also passes in the iteration count in another register, which
is not used at all.
Remove these two unnecessary operations. Just rely on the single constant
passed to the macro for the iterations.
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: David Woodhouse <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions