diff options
author | Tony Luck <tony.luck@intel.com> | 2019-12-16 22:42:54 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-01-08 11:29:25 +0100 |
commit | f444a5ff95dce07cf4353cbb85fc3e785019d430 (patch) | |
tree | 028332dd5f3c84140bc8ec91bc705b39f0546e1d /arch/x86/kernel/signal.c | |
parent | x86/context-tracking: Remove exception_enter/exit() from KVM_PV_REASON_PAGE_N... (diff) | |
download | linux-f444a5ff95dce07cf4353cbb85fc3e785019d430.tar.xz linux-f444a5ff95dce07cf4353cbb85fc3e785019d430.zip |
x86/cpufeatures: Add support for fast short REP; MOVSB
>From the Intel Optimization Reference Manual:
3.7.6.1 Fast Short REP MOVSB
Beginning with processors based on Ice Lake Client microarchitecture,
REP MOVSB performance of short operations is enhanced. The enhancement
applies to string lengths between 1 and 128 bytes long. Support for
fast-short REP MOVSB is enumerated by the CPUID feature flag: CPUID
[EAX=7H, ECX=0H).EDX.FAST_SHORT_REP_MOVSB[bit 4] = 1. There is no change
in the REP STOS performance.
Add an X86_FEATURE_FSRM flag for this.
memmove() avoids REP MOVSB for short (< 32 byte) copies. Check FSRM and
use REP MOVSB for short copies on systems that support it.
[ bp: Massage and add comment. ]
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20191216214254.26492-1-tony.luck@intel.com
Diffstat (limited to 'arch/x86/kernel/signal.c')
0 files changed, 0 insertions, 0 deletions