diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-10 10:31:17 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-25 17:35:07 +0200 |
commit | e582b629f0b50c10137ba47c4ca7fe30b3357e3d (patch) | |
tree | 0493ead1dcd8b995d31b488558ded08b22823be5 /scripts | |
parent | 45b5933f7afb055080e915c83663f3a4709a02db (diff) | |
download | qemu-e582b629f0b50c10137ba47c4ca7fe30b3357e3d.zip qemu-e582b629f0b50c10137ba47c4ca7fe30b3357e3d.tar.gz qemu-e582b629f0b50c10137ba47c4ca7fe30b3357e3d.tar.bz2 |
target/i386: implement SHA instructions
The implementation was validated with OpenSSL and with the test vectors in
https://github.com/rust-lang/stdarch/blob/master/crates/core_arch/src/x86/sha.rs.
The instructions provide a ~25% improvement on hashing a 64 MiB file:
runtime goes down from 1.8 seconds to 1.4 seconds; instruction count on
the host goes down from 5.8 billion to 4.8 billion with slightly better
IPC too. Good job Intel. ;)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions