[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/45] host/i386: assume presence of SSSE3
From: |
Paolo Bonzini |
Subject: |
[PULL 06/45] host/i386: assume presence of SSSE3 |
Date: |
Tue, 4 Jun 2024 08:43:30 +0200 |
QEMU now requires an x86-64-v2 host, which has SSSE3 instructions
(notably, PSHUFB which is used by QEMU's AES implementation).
Do not bother checking it.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
util/cpuinfo-i386.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/cpuinfo-i386.c b/util/cpuinfo-i386.c
index ca74ef04f54..6d474a6259a 100644
--- a/util/cpuinfo-i386.c
+++ b/util/cpuinfo-i386.c
@@ -38,8 +38,8 @@ unsigned __attribute__((constructor)) cpuinfo_init(void)
info |= (c & bit_POPCNT ? CPUINFO_POPCNT : 0);
info |= (c & bit_PCLMUL ? CPUINFO_PCLMUL : 0);
- /* Our AES support requires PSHUFB as well. */
- info |= ((c & bit_AES) && (c & bit_SSSE3) ? CPUINFO_AES : 0);
+ /* NOTE: our AES support requires SSSE3 (PSHUFB) as well. */
+ info |= (c & bit_AES) ? CPUINFO_AES : 0;
/* For AVX features, we must check available and usable. */
if ((c & bit_AVX) && (c & bit_OSXSAVE)) {
--
2.45.1
- [PULL 00/45] mostly i386 patches for 2024-06-04, Paolo Bonzini, 2024/06/04
- [PULL 02/45] host/i386: nothing looks at CPUINFO_SSE4, Paolo Bonzini, 2024/06/04
- [PULL 01/45] virtio-blk: remove SCSI passthrough functionality, Paolo Bonzini, 2024/06/04
- [PULL 03/45] meson: assume x86-64-v2 baseline ISA, Paolo Bonzini, 2024/06/04
- [PULL 05/45] host/i386: assume presence of SSE2, Paolo Bonzini, 2024/06/04
- [PULL 04/45] host/i386: assume presence of CMOV, Paolo Bonzini, 2024/06/04
- [PULL 06/45] host/i386: assume presence of SSSE3,
Paolo Bonzini <=
- [PULL 08/45] target/i386: fix SSE and SSE2 feature check, Paolo Bonzini, 2024/06/04
- [PULL 07/45] host/i386: assume presence of POPCNT, Paolo Bonzini, 2024/06/04
- [PULL 09/45] target/i386: fix memory opsize for Mov to/from Seg, Paolo Bonzini, 2024/06/04
- [PULL 10/45] target/i386/tcg: Fix RDPID feature check, Paolo Bonzini, 2024/06/04
- [PULL 12/45] update-linux-headers: fix forwarding to asm-generic headers, Paolo Bonzini, 2024/06/04
- [PULL 11/45] target/i386: fix xsave.flat from kvm-unit-tests, Paolo Bonzini, 2024/06/04
- [PULL 13/45] update-linux-headers: move pvpanic.h to correct directory, Paolo Bonzini, 2024/06/04
- [PULL 14/45] linux-headers: Update to current kvm/next, Paolo Bonzini, 2024/06/04
- [PULL 15/45] update-linux-headers: import linux/kvm_para.h header, Paolo Bonzini, 2024/06/04
- [PULL 16/45] machine: allow early use of machine_require_guest_memfd, Paolo Bonzini, 2024/06/04