[PATCH 15/41] tests: Add CPU detection test for Intel Atom N450

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 tests/cputest.c                                 |  1 +
 tests/cputestdata/x86-cpuid-Atom-N450-guest.xml | 21 +++++++++++++++++++
 tests/cputestdata/x86-cpuid-Atom-N450-host.xml  | 22 ++++++++++++++++++++
 tests/cputestdata/x86-cpuid-Atom-N450.xml       | 27 +++++++++++++++++++++++++
 4 files changed, 71 insertions(+)
 create mode 100644 tests/cputestdata/x86-cpuid-Atom-N450-guest.xml
 create mode 100644 tests/cputestdata/x86-cpuid-Atom-N450-host.xml
 create mode 100644 tests/cputestdata/x86-cpuid-Atom-N450.xml

diff --git a/tests/cputest.c b/tests/cputest.c
index 2973368..eae1adb 100644
--- a/tests/cputest.c
+++ b/tests/cputest.c
@@ -843,6 +843,7 @@ mymain(void)
 
     DO_TEST_CPUID("x86", "A10-5800K", true);
     DO_TEST_CPUID("x86", "Atom-D510", false);
+    DO_TEST_CPUID("x86", "Atom-N450", false);
 
 #if WITH_QEMU && WITH_YAJL
     qemuTestDriverFree(&driver);
diff --git a/tests/cputestdata/x86-cpuid-Atom-N450-guest.xml b/tests/cputestdata/x86-cpuid-Atom-N450-guest.xml
new file mode 100644
index 0000000..be11b88
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Atom-N450-guest.xml
@@ -0,0 +1,21 @@
+<cpu mode='custom' match='exact'>
+  <arch>x86_64</arch>
+  <model fallback='forbid'>core2duo</model>
+  <vendor>Intel</vendor>
+  <feature policy='require' name='ds'/>
+  <feature policy='require' name='acpi'/>
+  <feature policy='require' name='ss'/>
+  <feature policy='require' name='ht'/>
+  <feature policy='require' name='tm'/>
+  <feature policy='require' name='pbe'/>
+  <feature policy='require' name='dtes64'/>
+  <feature policy='require' name='ds_cpl'/>
+  <feature policy='require' name='est'/>
+  <feature policy='require' name='tm2'/>
+  <feature policy='require' name='cx16'/>
+  <feature policy='require' name='xtpr'/>
+  <feature policy='require' name='pdcm'/>
+  <feature policy='require' name='movbe'/>
+  <feature policy='require' name='lahf_lm'/>
+  <feature policy='disable' name='pse36'/>
+</cpu>
diff --git a/tests/cputestdata/x86-cpuid-Atom-N450-host.xml b/tests/cputestdata/x86-cpuid-Atom-N450-host.xml
new file mode 100644
index 0000000..c79713d
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Atom-N450-host.xml
@@ -0,0 +1,22 @@
+<cpu>
+  <arch>x86_64</arch>
+  <model>n270</model>
+  <vendor>Intel</vendor>
+  <feature name='ds'/>
+  <feature name='acpi'/>
+  <feature name='ss'/>
+  <feature name='ht'/>
+  <feature name='tm'/>
+  <feature name='pbe'/>
+  <feature name='dtes64'/>
+  <feature name='ds_cpl'/>
+  <feature name='est'/>
+  <feature name='tm2'/>
+  <feature name='cx16'/>
+  <feature name='xtpr'/>
+  <feature name='pdcm'/>
+  <feature name='movbe'/>
+  <feature name='syscall'/>
+  <feature name='lm'/>
+  <feature name='lahf_lm'/>
+</cpu>
diff --git a/tests/cputestdata/x86-cpuid-Atom-N450.xml b/tests/cputestdata/x86-cpuid-Atom-N450.xml
new file mode 100644
index 0000000..1852d67
--- /dev/null
+++ b/tests/cputestdata/x86-cpuid-Atom-N450.xml
@@ -0,0 +1,27 @@
+<!-- Intel(R) Atom(TM) CPU N450   @ 1.66GHz -->
+<cpudata arch='x86'>
+  <cpuid eax_in='0x00000000' ecx_in='0x00' eax='0x0000000a' ebx='0x756e6547' ecx='0x6c65746e' edx='0x49656e69'/>
+  <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x000106ca' ebx='0x00020800' ecx='0x0040e39d' edx='0xbfe9fbff'/>
+  <cpuid eax_in='0x00000002' ecx_in='0x00' eax='0x4fba5901' ebx='0x0e3080c0' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x00000003' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x00000004' ecx_in='0x00' eax='0x00004121' ebx='0x0140003f' ecx='0x0000003f' edx='0x00000001'/>
+  <cpuid eax_in='0x00000004' ecx_in='0x01' eax='0x00004122' ebx='0x01c0003f' ecx='0x0000003f' edx='0x00000001'/>
+  <cpuid eax_in='0x00000004' ecx_in='0x02' eax='0x00004143' ebx='0x01c0003f' ecx='0x000003ff' edx='0x00000001'/>
+  <cpuid eax_in='0x00000005' ecx_in='0x00' eax='0x00000040' ebx='0x00000040' ecx='0x00000003' edx='0x00020220'/>
+  <cpuid eax_in='0x00000006' ecx_in='0x00' eax='0x00000001' ebx='0x00000002' ecx='0x00000001' edx='0x00000000'/>
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x00000008' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x00000009' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x0000000a' ecx_in='0x00' eax='0x07280203' ebx='0x00000000' ecx='0x00000000' edx='0x00000503'/>
+  <cpuid eax_in='0x80000000' ecx_in='0x00' eax='0x80000008' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000001' edx='0x20100800'/>
+  <cpuid eax_in='0x80000002' ecx_in='0x00' eax='0x20202020' ebx='0x20202020' ecx='0x746e4920' edx='0x52286c65'/>
+  <cpuid eax_in='0x80000003' ecx_in='0x00' eax='0x74412029' ebx='0x54286d6f' ecx='0x4320294d' edx='0x4e205550'/>
+  <cpuid eax_in='0x80000004' ecx_in='0x00' eax='0x20303534' ebx='0x20402020' ecx='0x36362e31' edx='0x007a4847'/>
+  <cpuid eax_in='0x80000005' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x80000006' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x02006040' edx='0x00000000'/>
+  <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x80000008' ecx_in='0x00' eax='0x00003020' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
+  <cpuid eax_in='0x80860000' ecx_in='0x00' eax='0x07280203' ebx='0x00000000' ecx='0x00000000' edx='0x00000503'/>
+  <cpuid eax_in='0xc0000000' ecx_in='0x00' eax='0x07280203' ebx='0x00000000' ecx='0x00000000' edx='0x00000503'/>
+</cpudata>
-- 
2.8.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]