From: Jiri Denemark Date: Wed, 1 Jun 2016 15:52:51 +0000 (+0200) Subject: tests: Add CPU detection test for Intel Core i5-4670T X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1354cf151e7a0a153b05c450baae5b41effbd8ab;p=libvirt.git tests: Add CPU detection test for Intel Core i5-4670T Signed-off-by: Jiri Denemark --- diff --git a/tests/cputest.c b/tests/cputest.c index 20a1f23a0f..e47c3ef67a 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -850,6 +850,7 @@ mymain(void) DO_TEST_CPUID("x86", "Atom-N450", false); DO_TEST_CPUID("x86", "Core-i5-2500", true); DO_TEST_CPUID("x86", "Core-i5-2540M", true); + DO_TEST_CPUID("x86", "Core-i5-4670T", true); #if WITH_QEMU && WITH_YAJL qemuTestDriverFree(&driver); diff --git a/tests/cputestdata/x86-cpuid-Core-i5-4670T-guest.xml b/tests/cputestdata/x86-cpuid-Core-i5-4670T-guest.xml new file mode 100644 index 0000000000..77b1a18c5e --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i5-4670T-guest.xml @@ -0,0 +1,28 @@ + + x86_64 + Haswell + Intel + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Core-i5-4670T-host.xml b/tests/cputestdata/x86-cpuid-Core-i5-4670T-host.xml new file mode 100644 index 0000000000..32051e4f1d --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i5-4670T-host.xml @@ -0,0 +1,28 @@ + + x86_64 + Haswell + Intel + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Core-i5-4670T-json.xml b/tests/cputestdata/x86-cpuid-Core-i5-4670T-json.xml new file mode 100644 index 0000000000..32b86a1000 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i5-4670T-json.xml @@ -0,0 +1,13 @@ + + x86_64 + Haswell + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Core-i5-4670T.json b/tests/cputestdata/x86-cpuid-Core-i5-4670T.json new file mode 100644 index 0000000000..e715ca082a --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i5-4670T.json @@ -0,0 +1,77 @@ +{ + "return": [ + { + "cpuid-register": "EAX", + "cpuid-input-ecx": 1, + "cpuid-input-eax": 13, + "features": 1 + }, + { + "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": 33 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483649, + "features": 739248128 + }, + { + "cpuid-register": "EBX", + "cpuid-input-ecx": 0, + "cpuid-input-eax": 7, + "features": 4027 + }, + { + "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": 60, + "id": "model" +} + +{ + "return": 3, + "id": "stepping" +} + +{ + "return": "Intel(R) Core(TM) i5-4670T CPU @ 2.30GHz", + "id": "model-id" +} diff --git a/tests/cputestdata/x86-cpuid-Core-i5-4670T.xml b/tests/cputestdata/x86-cpuid-Core-i5-4670T.xml new file mode 100644 index 0000000000..62960f98af --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Core-i5-4670T.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +