From c2db8a66d56fbca9aff34276bafae424720d65fd Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Wed, 1 Jun 2016 17:52:55 +0200 Subject: [PATCH] tests: Add CPU detection test for Intel Xeon E3-1245 Signed-off-by: Jiri Denemark --- tests/cputest.c | 1 + .../x86-cpuid-Xeon-E3-1245-guest.xml | 30 +++++++ .../x86-cpuid-Xeon-E3-1245-host.xml | 30 +++++++ .../x86-cpuid-Xeon-E3-1245-json.xml | 15 ++++ tests/cputestdata/x86-cpuid-Xeon-E3-1245.json | 88 +++++++++++++++++++ tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml | 46 ++++++++++ 6 files changed, 210 insertions(+) create mode 100644 tests/cputestdata/x86-cpuid-Xeon-E3-1245-guest.xml create mode 100644 tests/cputestdata/x86-cpuid-Xeon-E3-1245-host.xml create mode 100644 tests/cputestdata/x86-cpuid-Xeon-E3-1245-json.xml create mode 100644 tests/cputestdata/x86-cpuid-Xeon-E3-1245.json create mode 100644 tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml diff --git a/tests/cputest.c b/tests/cputest.c index ffc8b0637d..aa3fde12bf 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -868,6 +868,7 @@ mymain(void) DO_TEST_CPUID("x86", "Pentium-P6100", false); DO_TEST_CPUID("x86", "Phenom-B95", true); DO_TEST_CPUID("x86", "Xeon-5110", false); + DO_TEST_CPUID("x86", "Xeon-E3-1245", true); #if WITH_QEMU && WITH_YAJL qemuTestDriverFree(&driver); diff --git a/tests/cputestdata/x86-cpuid-Xeon-E3-1245-guest.xml b/tests/cputestdata/x86-cpuid-Xeon-E3-1245-guest.xml new file mode 100644 index 0000000000..0001b2dabd --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Xeon-E3-1245-guest.xml @@ -0,0 +1,30 @@ + + x86_64 + Broadwell + Intel + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Xeon-E3-1245-host.xml b/tests/cputestdata/x86-cpuid-Xeon-E3-1245-host.xml new file mode 100644 index 0000000000..0c2aaee686 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Xeon-E3-1245-host.xml @@ -0,0 +1,30 @@ + + x86_64 + Broadwell + Intel + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Xeon-E3-1245-json.xml b/tests/cputestdata/x86-cpuid-Xeon-E3-1245-json.xml new file mode 100644 index 0000000000..81a41fb026 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Xeon-E3-1245-json.xml @@ -0,0 +1,15 @@ + + x86_64 + Broadwell + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Xeon-E3-1245.json b/tests/cputestdata/x86-cpuid-Xeon-E3-1245.json new file mode 100644 index 0000000000..10fbe069ff --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Xeon-E3-1245.json @@ -0,0 +1,88 @@ +{ + "return": [ + { + "cpuid-register": "EAX", + "cpuid-input-eax": 6, + "features": 4 + }, + { + "cpuid-register": "EAX", + "cpuid-input-ecx": 1, + "cpuid-input-eax": 13, + "features": 7 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483658, + "features": 0 + }, + { + "cpuid-register": "EAX", + "cpuid-input-eax": 1073741825, + "features": 16777467 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 3221225473, + "features": 0 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483655, + "features": 0 + }, + { + "cpuid-register": "ECX", + "cpuid-input-eax": 2147483649, + "features": 289 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483649, + "features": 739248128 + }, + { + "cpuid-register": "ECX", + "cpuid-input-ecx": 0, + "cpuid-input-eax": 7, + "features": 0 + }, + { + "cpuid-register": "EBX", + "cpuid-input-ecx": 0, + "cpuid-input-eax": 7, + "features": 10244027 + }, + { + "cpuid-register": "ECX", + "cpuid-input-eax": 1, + "features": 4160369187 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 1, + "features": 260832255 + } + ], + "id": "feature-words" +} + +{ + "return": 6, + "id": "family" +} + +{ + "return": 94, + "id": "model" +} + +{ + "return": 3, + "id": "stepping" +} + +{ + "return": "Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz", + "id": "model-id" +} diff --git a/tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml b/tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml new file mode 100644 index 0000000000..42992db7d9 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- GitLab