Introduce SnowRidge CPU model
PATCH 1/1 Introduce SnowRidge CPU model
SnowRidge CPU supports Accelerator Infrastrcture Architecture (MOVDIRI, MOVDIR64B), CLDEMOTE and SPLIT_LOCK_DISABLE.
MOVDIRI, MOVDIR64B, and CLDEMOTE are found via CPUID. The availability of SPLIT_LOCK_DISABLE is check via msr access
References can be found in either:
https://software.intel.com/en-us/articles/intel-sdm
https://software.intel.com/en-us/download/intel-architecture-instruction-set-extensions-and-future-features-programming-reference
--- target/i386/cpu.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+)
target/i386/cpu.c +66 -0
@@ -2663,6 +2663,72 @@ static X86CPUDefinition builtin_x86_defs[] = { .xlevel = 0x80000008, .model_id = "Intel Xeon Processor (Icelake)", }, + { + .name = "SnowRidge", + .level = 27, + .vendor = CPUID_VENDOR_INTEL, + .family = 6, + .model = 134, + .stepping = 1, + .features[FEAT_1_EDX ] = +/* missing: CPUID_PN CPUID_IA64 */ +/* missing: CPUID_DTS, CPUID_HT, CPUID_TM, CPUID_PBE */ +CPUID_FP87 |CPUID_VME |CPUID_DE |CPUID_PSE | +CPUID_TSC |CPUID_MSR |CPUID_PAE |CPUID_MCE | +CPUID_CX8 |CPUID_APIC |CPUID_SEP | +CPUID_MTRR |CPUID_PGE |CPUID_MCA |CPUID_CMOV | +CPUID_PAT |CPUID_PSE36 |/* CPUID_PN | */ CPUID_CLFLUSH | +CPUID_MMX | + CPUID_FXSR | CPUID_SSE | CPUID_SSE2, + .features[FEAT_1_ECX ] = +CPUID_EXT_SSE3 |CPUID_EXT_PCLMULQDQ |CPUID_EXT_MONITOR | +CPUID_EXT_VMX | +CPUID_EXT_SSSE3 | +CPUID_EXT_CX16 | +CPUID_EXT_SSE41 | +CPUID_EXT_SSE42 |CPUID_EXT_X2APIC |CPUID_EXT_MOVBE |CPUID_EXT_POPCNT | +CPUID_EXT_TSC_DEADLINE_TIMER |CPUID_EXT_AES |CPUID_EXT_XSAVE | + CPUID_EXT_RDRAND, + .features[FEAT_8000_0001_EDX ] = +CPUID_EXT2_SYSCALL | +CPUID_EXT2_NX | +CPUID_EXT2_PDPE1GB |CPUID_EXT2_RDTSCP | + CPUID_EXT2_LM, + .features[FEAT_8000_0001_ECX ] = +CPUID_EXT3_LAHF_LM | + CPUID_EXT3_3DNOWPREFETCH, + .features[FEAT_7_0_EBX ] = +CPUID_7_0_EBX_FSGSBASE | +CPUID_7_0_EBX_SMEP | +CPUID_7_0_EBX_ERMS | +CPUID_7_0_EBX_MPX |/* missing bits 13, 15 */ +CPUID_7_0_EBX_RDSEED | +CPUID_7_0_EBX_SMAP |CPUID_7_0_EBX_CLFLUSHOPT | +CPUID_7_0_EBX_CLWB | + CPUID_7_0_EBX_SHA_NI, + .features[FEAT_7_0_ECX ] = +CPUID_7_0_ECX_UMIP | +/* missing bit 5 */ +CPUID_7_0_ECX_GFNI | +CPUID_7_0_ECX_MOVDIRI |CPUID_7_0_ECX_CLDEMOTE | + CPUID_7_0_ECX_MOVDIR64B, + .features[FEAT_7_0_EDX ] = +CPUID_7_0_EDX_SPEC_CTRL | + CPUID_7_0_EDX_ARCH_CAPABILITIES | CPUID_7_0_EDX_SPEC_CTRL_SSBD, /* missing bit 30 */ +/* Missing: XSAVES (not supported by some Linux versions, +* including v4.1 to v4.12). +* KVM doesn't yet expose any XSAVES state save component, +* and the only one defined in Skylake (processor tracing) +* probably will block migration anyway. +*/ + .features[FEAT_XSAVE ] = +CPUID_XSAVE_XSAVEOPT |CPUID_XSAVE_XSAVEC | + CPUID_XSAVE_XGETBV1, + .features[FEAT_6_EAX ] = + CPUID_6_EAX_ARAT, + .xlevel = 0x80000008, + .model_id = "Intel Atom Processor (SnowRidge)", + }, { .name = "KnightsMill", .level = 0xd,
Signature · 1 line
2.17.2
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH] Introduce SnowRidge CPU model
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'4a4ca68c21 Introduce SnowRidge CPU model
=== OUTPUT BEGIN ===
ERROR: code indent should never use tabs
#37: FILE: target/i386/cpu.c:2675:
+^I /* missing: CPUID_PN CPUID_IA64 */$
ERROR: spaces required around that '|' (ctx:VxW)
#39: FILE: target/i386/cpu.c:2677:
+ CPUID_FP87 | CPUID_VME | CPUID_DE| CPUID_PSE |
^
WARNING: Block comments use a leading /* on a separate line #43: FILE: target/i386/cpu.c:2681:
+ CPUID_PAT | CPUID_PSE36 | /* CPUID_PN | */ CPUID_CLFLUSH |
WARNING: line over 80 characters
#52: FILE: target/i386/cpu.c:2690:
+ CPUID_EXT_SSE42 | CPUID_EXT_X2APIC | CPUID_EXT_MOVBE | CPUID_EXT_POPCNT |
ERROR: line over 90 characters
#80: FILE: target/i386/cpu.c:2718:
+ CPUID_7_0_EDX_ARCH_CAPABILITIES | CPUID_7_0_EDX_SPEC_CTRL_SSBD, /* missing bit 30 */
WARNING: Block comments use a leading /* on a separate line #81: FILE: target/i386/cpu.c:2719:
+ /* Missing: XSAVES (not supported by some Linux versions,
WARNING: Block comments should align the * on each line #82: FILE: target/i386/cpu.c:2720:
+ /* Missing: XSAVES (not supported by some Linux versions,
+ * including v4.1 to v4.12).
total: 3 errors, 4 warnings, 72 lines checked
Commit 4a4ca68c21ba (Introduce SnowRidge CPU model) has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]