Fixed Xen capabilities parsing & added test suite

This commit is contained in:
Daniel P. Berrange
2007-03-27 14:45:17 +00:00
parent 17d0bf6454
commit 348209ca26
38 changed files with 943 additions and 95 deletions

View File

@@ -0,0 +1,2 @@
Makefile
Makefile.in

View File

@@ -0,0 +1,2 @@
EXTRA_DIST = $(wildcard *.xml) $(wildcard *.cpuinfo) $(wildcard *.caps)

View File

@@ -0,0 +1 @@
xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p

View File

@@ -0,0 +1,38 @@
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz
stepping : 6
cpu MHz : 2327.560
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 5821.44
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz
stepping : 6
cpu MHz : 2327.560
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 5821.44

View File

@@ -0,0 +1,37 @@
<capabilities>
<host>
<cpu>
<arch>i686</arch>
<features>
<vmx/>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="i686">
<wordsize>32</wordsize>
<domain type="xen"></domain>
</arch>
<features>
<pae/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name="i686">
<wordsize>32</wordsize>
<domain type="xen"></domain>
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
<machine>pc</machine>
<machine>isapc</machine>
<loader>/usr/lib/xen/boot/hvmloader</loader>
</arch>
<features>
<pae/>
<nonpae/>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-x86_32p

View File

@@ -0,0 +1,20 @@
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz
stepping : 6
cpu MHz : 2327.560
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 5821.44

View File

@@ -0,0 +1,21 @@
<capabilities>
<host>
<cpu>
<arch>i686</arch>
<features>
<vmx/>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="i686">
<wordsize>32</wordsize>
<domain type="xen"></domain>
</arch>
<features>
<pae/>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-x86_32

View File

@@ -0,0 +1,19 @@
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz
stepping : 6
cpu MHz : 2327.560
cache size : 4096 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu tsc msr mce cx8 apic mtrr mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor
bogomips : 5821.44

View File

@@ -0,0 +1,20 @@
<capabilities>
<host>
<cpu>
<arch>i686</arch>
<features>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="i686">
<wordsize>32</wordsize>
<domain type="xen"></domain>
</arch>
<features>
<nonpae/>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-ia64be hvm-3.0-ia64be

View File

@@ -0,0 +1,29 @@
processor : 0
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1
processor : 1
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1

View File

@@ -0,0 +1,35 @@
<capabilities>
<host>
<cpu>
<arch>ia64</arch>
<features>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="ia64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
</arch>
<features>
<ia64_be/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name="ia64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
<machine>pc</machine>
<machine>isapc</machine>
<loader>/usr/lib/xen/boot/hvmloader</loader>
</arch>
<features>
<ia64_be/>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-ia64be

View File

@@ -0,0 +1,29 @@
processor : 0
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1
processor : 1
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1

View File

@@ -0,0 +1,20 @@
<capabilities>
<host>
<cpu>
<arch>ia64</arch>
<features>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="ia64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
</arch>
<features>
<ia64_be/>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-ia64 hvm-3.0-ia64

View File

@@ -0,0 +1,29 @@
processor : 0
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1
processor : 1
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1

View File

@@ -0,0 +1,33 @@
<capabilities>
<host>
<cpu>
<arch>ia64</arch>
<features>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="ia64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
</arch>
<features>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name="ia64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
<machine>pc</machine>
<machine>isapc</machine>
<loader>/usr/lib/xen/boot/hvmloader</loader>
</arch>
<features>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-ia64

View File

@@ -0,0 +1,29 @@
processor : 0
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1
processor : 1
vendor : Xen/ia64
arch : IA-64
family : 32
model : 0
revision : 7
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1594.000670
itc MHz : 399.165930
BogoMIPS : 3186.68
siblings : 1

View File

@@ -0,0 +1,19 @@
<capabilities>
<host>
<cpu>
<arch>ia64</arch>
<features>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="ia64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
</arch>
<features>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-powerpc64

View File

View File

@@ -0,0 +1,19 @@
<capabilities>
<host>
<cpu>
<arch>ppc64</arch>
<features>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="ppc64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
</arch>
<features>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64

View File

@@ -0,0 +1,47 @@
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 67
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping : 2
cpu MHz : 2600.000
cache size : 1024 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips : 6469.52
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 67
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping : 2
cpu MHz : 2600.000
cache size : 1024 KB
physical id : 1
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips : 6469.52
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

View File

@@ -0,0 +1,50 @@
<capabilities>
<host>
<cpu>
<arch>x86_64</arch>
<features>
<svm/>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="x86_64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
</arch>
<features>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name="i686">
<wordsize>32</wordsize>
<domain type="xen"></domain>
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
<machine>pc</machine>
<machine>isapc</machine>
<loader>/usr/lib/xen/boot/hvmloader</loader>
</arch>
<features>
<pae/>
<nonpae/>
</features>
</guest>
<guest>
<os_type>hvm</os_type>
<arch name="x86_64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
<machine>pc</machine>
<machine>isapc</machine>
<loader>/usr/lib/xen/boot/hvmloader</loader>
</arch>
<features>
</features>
</guest>
</capabilities>

View File

@@ -0,0 +1 @@
xen-3.0-x86_64

View File

@@ -0,0 +1,47 @@
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 67
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping : 2
cpu MHz : 2600.000
cache size : 1024 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips : 6469.52
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 67
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
stepping : 2
cpu MHz : 2600.000
cache size : 1024 KB
physical id : 1
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8_legacy
bogomips : 6469.52
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

View File

@@ -0,0 +1,20 @@
<capabilities>
<host>
<cpu>
<arch>x86_64</arch>
<features>
<svm/>
</features>
</cpu>
</host>
<guest>
<os_type>xen</os_type>
<arch name="x86_64">
<wordsize>64</wordsize>
<domain type="xen"></domain>
</arch>
<features>
</features>
</guest>
</capabilities>