Skip to content

target/i386: Support new Intel platform Instructions in CPUID enumeration

Tao Su qemu-devel 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 3 repliesApplied

Changes in v2 from the cover letter

- Rebase to latest QEMU.
- Improve changelog.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6target/i386: Add support for CMPCCXADD in CPUID enumerationtarget/i386/cpu.c target/i386/cpu.h+3 -10 replies
2/6target/i386: Add support for AMX-FP16 in CPUID enumerationtarget/i386/cpu.c target/i386/cpu.h+3 -10 replies
3/6target/i386: Add support for AVX-IFMA in CPUID enumerationtarget/i386/cpu.c target/i386/cpu.h+3 -10 replies
4/6target/i386: Add support for AVX-VNNI-INT8 in CPUID enumerationtarget/i386/cpu.c target/i386/cpu.h+25 -10 replies
5/6target/i386: Add support for AVX-NE-CONVERT in CPUID enumerationtarget/i386/cpu.c target/i386/cpu.h+3 -10 replies
6/6target/i386: Add support for PREFETCHIT0/1 in CPUID enumerationtarget/i386/cpu.c target/i386/cpu.h+3 -10 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchXiaoyao Li
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] target/i386: Support new Intel platform Instructions in CPUID enumeration

Intel platforms Granite Rapids/Sierra Forest introduce below new instructions and CPUID leaves:

- CMPccXADD CPUID.(EAX=7,ECX=1):EAX[bit 7]
- AMX-FP16 CPUID.(EAX=7,ECX=1):EAX[bit 21]
- AVX-IFMA CPUID.(EAX=7,ECX=1):EAX[bit 23]
- AVX-VNNI-INT8 CPUID.(EAX=7,ECX=1):EDX[bit 4]
- AVX-NE-CONVERT CPUID.(EAX=7,ECX=1):EDX[bit 5]
- PREFETCHITI CPUID.(EAX=7,ECX=1):EDX[bit 14]

Details can be found in recent Intel ISE (Instruction Set Extensions)[1].

KVM part of advertising these CPUID bits have been already in Linux mainline from commit(6a19d7aa5821) to commit(29c46979b25d). This series adds the counterpart in QEMU to allow these features exposed to guest.

[1] Intel ISE: https://cdrdv2.intel.com/v1/dl/getContent/671368

---

Changelog:

v2:
- Rebase to latest QEMU.
- Improve changelog.
v1:
- https://lore.kernel.org/all/[email protected]/

Jiaxi Chen (6):
target/i386: Add support for CMPCCXADD in CPUID enumeration target/i386: Add support for AMX-FP16 in CPUID enumeration target/i386: Add support for AVX-IFMA in CPUID enumeration target/i386: Add support for AVX-VNNI-INT8 in CPUID enumeration target/i386: Add support for AVX-NE-CONVERT in CPUID enumeration target/i386: Add support for PREFETCHIT0/1 in CPUID enumeration

 target/i386/cpu.c | 26 +++++++++++++++++++++++---
 target/i386/cpu.h | 14 ++++++++++++++
 2 files changed, 37 insertions(+), 3 deletions(-)

base-commit: 627634031092e1514f363fd8659a579398de0f0e

Signature · 1 line
2.34.1