From: Jiri Denemark Date: Wed, 1 Jun 2016 15:52:54 +0000 (+0200) Subject: tests: Add CPU detection test for AMD Opteron 6234 X-Git-Tag: v2.0.0-rc1~320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7608508c72af969c76b730d7086a13c95a4caf35;p=thirdparty%2Flibvirt.git tests: Add CPU detection test for AMD Opteron 6234 Signed-off-by: Jiri Denemark --- diff --git a/tests/cputest.c b/tests/cputest.c index d69eff77bb..1d4a8f120e 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -863,6 +863,7 @@ mymain(void) DO_TEST_CPUID("x86", "FX-8150", false); DO_TEST_CPUID("x86", "Opteron-1352", false); DO_TEST_CPUID("x86", "Opteron-2350", true); + DO_TEST_CPUID("x86", "Opteron-6234", true); #if WITH_QEMU && WITH_YAJL qemuTestDriverFree(&driver); diff --git a/tests/cputestdata/x86-cpuid-Opteron-6234-guest.xml b/tests/cputestdata/x86-cpuid-Opteron-6234-guest.xml new file mode 100644 index 0000000000..9858ee4e25 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Opteron-6234-guest.xml @@ -0,0 +1,24 @@ + + x86_64 + Opteron_G4 + AMD + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Opteron-6234-host.xml b/tests/cputestdata/x86-cpuid-Opteron-6234-host.xml new file mode 100644 index 0000000000..ec670c612e --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Opteron-6234-host.xml @@ -0,0 +1,24 @@ + + x86_64 + Opteron_G4 + AMD + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Opteron-6234-json.xml b/tests/cputestdata/x86-cpuid-Opteron-6234-json.xml new file mode 100644 index 0000000000..2bb59a3947 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Opteron-6234-json.xml @@ -0,0 +1,16 @@ + + x86_64 + Opteron_G4 + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86-cpuid-Opteron-6234.json b/tests/cputestdata/x86-cpuid-Opteron-6234.json new file mode 100644 index 0000000000..0df3860766 --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Opteron-6234.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": 0 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483658, + "features": 9 + }, + { + "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": 68595 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483649, + "features": 668204031 + }, + { + "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": 2 + }, + { + "cpuid-register": "ECX", + "cpuid-input-eax": 1, + "features": 2545426947 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 1, + "features": 126614527 + } + ], + "id": "feature-words" +} + +{ + "return": 21, + "id": "family" +} + +{ + "return": 1, + "id": "model" +} + +{ + "return": 2, + "id": "stepping" +} + +{ + "return": "AMD Opteron(TM) Processor 6234 ", + "id": "model-id" +} diff --git a/tests/cputestdata/x86-cpuid-Opteron-6234.xml b/tests/cputestdata/x86-cpuid-Opteron-6234.xml new file mode 100644 index 0000000000..9a89fd725e --- /dev/null +++ b/tests/cputestdata/x86-cpuid-Opteron-6234.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +