mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
Remove xencaps tests and data files
Signed-off-by: Jim Fehlig <jfehlig@suse.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
8ee83ea875
commit
4392d2d49b
@ -161,7 +161,6 @@ EXTRA_DIST = \
|
||||
virusbtestdata \
|
||||
vmwareverdata \
|
||||
vmx2xmldata \
|
||||
xencapsdata \
|
||||
xlconfigdata \
|
||||
xmconfigdata \
|
||||
xml2sexprdata \
|
||||
@ -272,10 +271,6 @@ endif WITH_SECDRIVER_SELINUX
|
||||
ssh_SOURCES = ssh.c
|
||||
ssh_LDADD = $(COVERAGE_LDFLAGS)
|
||||
|
||||
if WITH_XEN
|
||||
test_programs += xencapstest
|
||||
endif WITH_XEN
|
||||
|
||||
if WITH_LIBXL
|
||||
test_programs += xlconfigtest xml2sexprtest sexpr2xmltest \
|
||||
xmconfigtest libxlxml2domconfigtest
|
||||
@ -498,18 +493,6 @@ sockettest_SOURCES = \
|
||||
testutils.c testutils.h
|
||||
sockettest_LDADD = $(LDADDS)
|
||||
|
||||
if WITH_XEN
|
||||
xen_LDADDS = ../src/libvirt_driver_xen_impl.la
|
||||
xen_LDADDS += $(LDADDS)
|
||||
|
||||
xencapstest_SOURCES = \
|
||||
xencapstest.c testutils.h testutils.c
|
||||
xencapstest_LDADD = $(xen_LDADDS)
|
||||
|
||||
else ! WITH_XEN
|
||||
EXTRA_DIST += xencapstest.c testutilsxen.c testutilsxen.h
|
||||
endif ! WITH_XEN
|
||||
|
||||
if WITH_LIBXL
|
||||
libxl_LDADDS = ../src/libvirt_driver_libxl_impl.la
|
||||
if WITH_NETWORK
|
||||
@ -984,9 +967,6 @@ endif WITH_LXC
|
||||
if WITH_QEMU
|
||||
vircapstest_SOURCES += testutilsqemu.c testutilsqemu.h
|
||||
endif WITH_QEMU
|
||||
if WITH_XEN
|
||||
vircapstest_SOURCES += testutilsxen.c testutilsxen.h
|
||||
endif WITH_XEN
|
||||
vircapstest_LDADD = $(qemu_LDADDS) $(LDADDS)
|
||||
|
||||
domaincapsmock_la_SOURCES = domaincapsmock.c
|
||||
|
@ -7,70 +7,6 @@
|
||||
#include "testutilshostcpus.h"
|
||||
#include "domain_conf.h"
|
||||
|
||||
virCapsPtr testXenCapsInit(void)
|
||||
{
|
||||
struct utsname utsname;
|
||||
virCapsPtr caps;
|
||||
virCapsGuestPtr guest;
|
||||
virCapsGuestMachinePtr *machines;
|
||||
int nmachines;
|
||||
static const char *const x86_machines[] = {
|
||||
"xenfv"
|
||||
};
|
||||
static const char *const xen_machines[] = {
|
||||
"xenpv"
|
||||
};
|
||||
|
||||
uname(&utsname);
|
||||
if ((caps = virCapabilitiesNew(VIR_ARCH_I686,
|
||||
false, false)) == NULL)
|
||||
return NULL;
|
||||
|
||||
nmachines = ARRAY_CARDINALITY(x86_machines);
|
||||
if ((machines = virCapabilitiesAllocMachines(x86_machines, nmachines)) == NULL)
|
||||
goto cleanup;
|
||||
|
||||
if ((guest = virCapabilitiesAddGuest(caps, VIR_DOMAIN_OSTYPE_HVM, VIR_ARCH_I686,
|
||||
"/usr/lib/xen/bin/qemu-dm", NULL,
|
||||
nmachines, machines)) == NULL)
|
||||
goto cleanup;
|
||||
machines = NULL;
|
||||
|
||||
if (virCapabilitiesAddGuestDomain(guest,
|
||||
VIR_DOMAIN_VIRT_XEN,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
NULL) == NULL)
|
||||
goto cleanup;
|
||||
|
||||
nmachines = ARRAY_CARDINALITY(xen_machines);
|
||||
if ((machines = virCapabilitiesAllocMachines(xen_machines, nmachines)) == NULL)
|
||||
goto cleanup;
|
||||
|
||||
if ((guest = virCapabilitiesAddGuest(caps, VIR_DOMAIN_OSTYPE_XEN, VIR_ARCH_I686,
|
||||
"/usr/lib/xen/bin/qemu-dm", NULL,
|
||||
nmachines, machines)) == NULL)
|
||||
goto cleanup;
|
||||
machines = NULL;
|
||||
|
||||
if (virCapabilitiesAddGuestDomain(guest,
|
||||
VIR_DOMAIN_VIRT_XEN,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
NULL) == NULL)
|
||||
goto cleanup;
|
||||
|
||||
return caps;
|
||||
|
||||
cleanup:
|
||||
virCapabilitiesFreeMachines(machines, nmachines);
|
||||
virObjectUnref(caps);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
virCapsPtr
|
||||
testXLInitCaps(void)
|
||||
{
|
||||
|
@ -6,8 +6,6 @@
|
||||
# include "libxl/libxl_capabilities.h"
|
||||
# endif
|
||||
|
||||
virCapsPtr testXenCapsInit(void);
|
||||
|
||||
virCapsPtr testXLInitCaps(void);
|
||||
|
||||
#endif /* _TESTUTILSXEN_H_ */
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include "testutils.h"
|
||||
#include "testutilslxc.h"
|
||||
#include "testutilsxen.h"
|
||||
#include "testutilsqemu.h"
|
||||
#include "capabilities.h"
|
||||
#include "virbitmap.h"
|
||||
@ -264,34 +263,6 @@ test_virCapsDomainDataLookupQEMU(const void *data ATTRIBUTE_UNUSED)
|
||||
}
|
||||
#endif /* WITH_QEMU */
|
||||
|
||||
#ifdef WITH_XEN
|
||||
static int
|
||||
test_virCapsDomainDataLookupXen(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
int ret = -1;
|
||||
virCapsPtr caps = NULL;
|
||||
|
||||
if (!(caps = testXenCapsInit())) {
|
||||
ret = -1;
|
||||
goto out;
|
||||
}
|
||||
|
||||
CAPSCOMP(-1, VIR_ARCH_NONE, VIR_DOMAIN_VIRT_NONE, NULL, NULL,
|
||||
VIR_DOMAIN_OSTYPE_HVM, VIR_ARCH_I686, VIR_DOMAIN_VIRT_XEN,
|
||||
"/usr/lib/xen/bin/qemu-dm", "xenfv");
|
||||
CAPSCOMP(VIR_DOMAIN_OSTYPE_XEN, VIR_ARCH_NONE, VIR_DOMAIN_VIRT_NONE, NULL, NULL,
|
||||
VIR_DOMAIN_OSTYPE_XEN, VIR_ARCH_I686, VIR_DOMAIN_VIRT_XEN,
|
||||
"/usr/lib/xen/bin/qemu-dm", "xenpv");
|
||||
|
||||
CAPS_EXPECT_ERR(VIR_DOMAIN_OSTYPE_XEN, VIR_ARCH_NONE, VIR_DOMAIN_VIRT_NONE, NULL, "xenfv");
|
||||
|
||||
ret = 0;
|
||||
out:
|
||||
virObjectUnref(caps);
|
||||
return ret;
|
||||
}
|
||||
#endif /* WITH_XEN */
|
||||
|
||||
#ifdef WITH_LXC
|
||||
static int
|
||||
test_virCapsDomainDataLookupLXC(const void *data ATTRIBUTE_UNUSED)
|
||||
@ -330,11 +301,6 @@ mymain(void)
|
||||
test_virCapsDomainDataLookupQEMU, NULL) < 0)
|
||||
ret = -1;
|
||||
#endif
|
||||
#ifdef WITH_XEN
|
||||
if (virTestRun("virCapsDomainDataLookupXen",
|
||||
test_virCapsDomainDataLookupXen, NULL) < 0)
|
||||
ret = -1;
|
||||
#endif
|
||||
#ifdef WITH_LXC
|
||||
if (virTestRun("virCapsDomainDataLookupLXC",
|
||||
test_virCapsDomainDataLookupLXC, NULL) < 0)
|
||||
|
@ -82,9 +82,6 @@ mymain(void)
|
||||
#ifdef WITH_NWFILTER
|
||||
TEST("nwfilter");
|
||||
#endif
|
||||
#ifdef WITH_XEN
|
||||
TEST("xen");
|
||||
#endif
|
||||
#ifdef WITH_LIBXL
|
||||
TEST("libxl");
|
||||
#endif
|
||||
|
@ -215,8 +215,7 @@ mymain(void)
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
DO_TEST_DIR("capability.rng", "capabilityschemadata", "xencapsdata",
|
||||
"vircaps2xmldata");
|
||||
DO_TEST_DIR("capability.rng", "capabilityschemadata", "vircaps2xmldata");
|
||||
DO_TEST_DIR("domain.rng", "domainschemadata", "qemuargv2xmldata",
|
||||
"qemuxml2argvdata", "sexpr2xmldata", "xmconfigdata",
|
||||
"xml2sexprdata", "qemuxml2xmloutdata", "lxcxml2xmldata",
|
||||
|
@ -1 +0,0 @@
|
||||
xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
|
@ -1,37 +0,0 @@
|
||||
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
|
@ -1,49 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>i686</arch>
|
||||
<features>
|
||||
<vmx/>
|
||||
</features>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='i686'>
|
||||
<wordsize>32</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<pae/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
<guest>
|
||||
<os_type>hvm</os_type>
|
||||
<arch name='i686'>
|
||||
<wordsize>32</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<machine>xenfv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<pae/>
|
||||
<nonpae/>
|
||||
<acpi default='on' toggle='yes'/>
|
||||
<apic default='on' toggle='yes'/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-x86_32p
|
@ -1,18 +0,0 @@
|
||||
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
|
@ -1,32 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>i686</arch>
|
||||
<features>
|
||||
<vmx/>
|
||||
</features>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='i686'>
|
||||
<wordsize>32</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<pae/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-x86_32
|
@ -1,18 +0,0 @@
|
||||
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
|
@ -1,29 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>i686</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='i686'>
|
||||
<wordsize>32</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<nonpae/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-ia64be hvm-3.0-ia64be
|
@ -1,29 +0,0 @@
|
||||
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
|
@ -1,45 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>ia64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='ia64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<ia64_be/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
<guest>
|
||||
<os_type>hvm</os_type>
|
||||
<arch name='ia64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<machine>xenfv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<ia64_be/>
|
||||
<acpi default='on' toggle='yes'/>
|
||||
<apic default='on' toggle='yes'/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-ia64be
|
@ -1,29 +0,0 @@
|
||||
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
|
@ -1,29 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>ia64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='ia64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<ia64_be/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-ia64 hvm-3.0-ia64
|
@ -1,29 +0,0 @@
|
||||
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
|
@ -1,41 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>ia64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='ia64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
</guest>
|
||||
|
||||
<guest>
|
||||
<os_type>hvm</os_type>
|
||||
<arch name='ia64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<machine>xenfv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<acpi default='on' toggle='yes'/>
|
||||
<apic default='on' toggle='yes'/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-ia64
|
@ -1,29 +0,0 @@
|
||||
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
|
@ -1,26 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>ia64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='ia64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-powerpc64
|
@ -1,26 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>ppc64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='ppc64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
|
@ -1,47 +0,0 @@
|
||||
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
|
@ -1,61 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>x86_64</arch>
|
||||
<features>
|
||||
<svm/>
|
||||
</features>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='x86_64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
</guest>
|
||||
|
||||
<guest>
|
||||
<os_type>hvm</os_type>
|
||||
<arch name='i686'>
|
||||
<wordsize>32</wordsize>
|
||||
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<machine>xenfv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<pae/>
|
||||
<nonpae/>
|
||||
<acpi default='on' toggle='yes'/>
|
||||
<apic default='on' toggle='yes'/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
<guest>
|
||||
<os_type>hvm</os_type>
|
||||
<arch name='x86_64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
|
||||
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
||||
<machine>xenfv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
<features>
|
||||
<acpi default='on' toggle='yes'/>
|
||||
<apic default='on' toggle='yes'/>
|
||||
</features>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1 +0,0 @@
|
||||
xen-3.0-x86_64
|
@ -1,47 +0,0 @@
|
||||
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
|
@ -1,29 +0,0 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>x86_64</arch>
|
||||
<features>
|
||||
<svm/>
|
||||
</features>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<migration_features>
|
||||
<live/>
|
||||
<uri_transports>
|
||||
<uri_transport>xenmigr</uri_transport>
|
||||
</uri_transports>
|
||||
</migration_features>
|
||||
</host>
|
||||
|
||||
<guest>
|
||||
<os_type>xen</os_type>
|
||||
<arch name='x86_64'>
|
||||
<wordsize>64</wordsize>
|
||||
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
|
||||
<machine>xenpv</machine>
|
||||
<domain type='xen'/>
|
||||
</arch>
|
||||
</guest>
|
||||
|
||||
</capabilities>
|
@ -1,224 +0,0 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "internal.h"
|
||||
#include "virxml.h"
|
||||
#include "testutils.h"
|
||||
#include "xen/xen_hypervisor.h"
|
||||
#include "virfile.h"
|
||||
#include "virstring.h"
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
static int
|
||||
testCompareFiles(virArch hostmachine, const char *xml_rel,
|
||||
const char *cpuinfo_rel, const char *capabilities_rel)
|
||||
{
|
||||
char *actualxml = NULL;
|
||||
FILE *fp1 = NULL, *fp2 = NULL;
|
||||
virCapsPtr caps = NULL;
|
||||
|
||||
int ret = -1;
|
||||
|
||||
char *xml = NULL;
|
||||
char *cpuinfo = NULL;
|
||||
char *capabilities = NULL;
|
||||
|
||||
if (virAsprintf(&xml, "%s/%s", abs_srcdir, xml_rel) < 0 ||
|
||||
virAsprintf(&cpuinfo, "%s/%s", abs_srcdir, cpuinfo_rel) < 0 ||
|
||||
virAsprintf(&capabilities, "%s/%s", abs_srcdir, capabilities_rel) < 0)
|
||||
goto fail;
|
||||
|
||||
if (!(fp1 = fopen(cpuinfo, "r")))
|
||||
goto fail;
|
||||
|
||||
if (!(fp2 = fopen(capabilities, "r")))
|
||||
goto fail;
|
||||
|
||||
if (!(caps = xenHypervisorMakeCapabilitiesInternal(NULL, hostmachine, fp1, fp2)))
|
||||
goto fail;
|
||||
|
||||
if (!(actualxml = virCapabilitiesFormatXML(caps)))
|
||||
goto fail;
|
||||
|
||||
if (virTestCompareToFile(actualxml, xml) < 0)
|
||||
goto fail;
|
||||
|
||||
ret = 0;
|
||||
|
||||
fail:
|
||||
VIR_FREE(actualxml);
|
||||
VIR_FREE(xml);
|
||||
VIR_FREE(cpuinfo);
|
||||
VIR_FREE(capabilities);
|
||||
VIR_FORCE_FCLOSE(fp1);
|
||||
VIR_FORCE_FCLOSE(fp2);
|
||||
|
||||
virObjectUnref(caps);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int testXeni686(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_I686,
|
||||
"xencapsdata/xen-i686.xml",
|
||||
"xencapsdata/xen-i686.cpuinfo",
|
||||
"xencapsdata/xen-i686.caps");
|
||||
}
|
||||
|
||||
static int testXeni686PAE(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_I686,
|
||||
"xencapsdata/xen-i686-pae.xml",
|
||||
"xencapsdata/xen-i686-pae.cpuinfo",
|
||||
"xencapsdata/xen-i686-pae.caps");
|
||||
}
|
||||
|
||||
static int testXeni686PAEHVM(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_I686,
|
||||
"xencapsdata/xen-i686-pae-hvm.xml",
|
||||
"xencapsdata/xen-i686-pae-hvm.cpuinfo",
|
||||
"xencapsdata/xen-i686-pae-hvm.caps");
|
||||
}
|
||||
|
||||
/* No PAE + HVM is non-sensical - all VMX capable
|
||||
CPUs have PAE */
|
||||
/*
|
||||
static int testXeni686HVM(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_I686,
|
||||
"xencapsdata/xen-i686-hvm.xml",
|
||||
"xencapsdata/xen-i686.cpuinfo",
|
||||
"xencapsdata/xen-i686-hvm.caps");
|
||||
}
|
||||
*/
|
||||
|
||||
static int testXenx86_64(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_X86_64,
|
||||
"xencapsdata/xen-x86_64.xml",
|
||||
"xencapsdata/xen-x86_64.cpuinfo",
|
||||
"xencapsdata/xen-x86_64.caps");
|
||||
}
|
||||
static int testXenx86_64HVM(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_X86_64,
|
||||
"xencapsdata/xen-x86_64-hvm.xml",
|
||||
"xencapsdata/xen-x86_64-hvm.cpuinfo",
|
||||
"xencapsdata/xen-x86_64-hvm.caps");
|
||||
}
|
||||
|
||||
static int testXenia64(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_ITANIUM,
|
||||
"xencapsdata/xen-ia64.xml",
|
||||
"xencapsdata/xen-ia64.cpuinfo",
|
||||
"xencapsdata/xen-ia64.caps");
|
||||
}
|
||||
static int testXenia64BE(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_ITANIUM,
|
||||
"xencapsdata/xen-ia64-be.xml",
|
||||
"xencapsdata/xen-ia64-be.cpuinfo",
|
||||
"xencapsdata/xen-ia64-be.caps");
|
||||
}
|
||||
|
||||
static int testXenia64HVM(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_ITANIUM,
|
||||
"xencapsdata/xen-ia64-hvm.xml",
|
||||
"xencapsdata/xen-ia64-hvm.cpuinfo",
|
||||
"xencapsdata/xen-ia64-hvm.caps");
|
||||
}
|
||||
static int testXenia64BEHVM(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_ITANIUM,
|
||||
"xencapsdata/xen-ia64-be-hvm.xml",
|
||||
"xencapsdata/xen-ia64-be-hvm.cpuinfo",
|
||||
"xencapsdata/xen-ia64-be-hvm.caps");
|
||||
}
|
||||
|
||||
static int testXenppc64(const void *data ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return testCompareFiles(VIR_ARCH_PPC64,
|
||||
"xencapsdata/xen-ppc64.xml",
|
||||
"xencapsdata/xen-ppc64.cpuinfo",
|
||||
"xencapsdata/xen-ppc64.caps");
|
||||
}
|
||||
|
||||
|
||||
/* Fake initialization data for xenHypervisorInit(). Must be initialized
|
||||
* explicitly before the implicit call via virInitialize(). */
|
||||
static struct xenHypervisorVersions hv_versions = {
|
||||
.hv = 0,
|
||||
.hypervisor = 2,
|
||||
.sys_interface = -1,
|
||||
.dom_interface = -1,
|
||||
};
|
||||
|
||||
static int
|
||||
mymain(void)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
xenHypervisorInit(&hv_versions);
|
||||
if (virInitialize() < 0)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
if (virTestRun("Capabilities for i686, no PAE, no HVM",
|
||||
testXeni686, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for i686, PAE, no HVM",
|
||||
testXeni686PAE, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
/* No PAE + HVM is non-sensical - all VMX capable
|
||||
CPUs have PAE */
|
||||
/*if (virTestRun("Capabilities for i686, no PAE, HVM",
|
||||
testXeni686HVM, NULL) != 0)
|
||||
ret = -1;
|
||||
*/
|
||||
|
||||
if (virTestRun("Capabilities for i686, PAE, HVM",
|
||||
testXeni686PAEHVM, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for x86_64, no HVM",
|
||||
testXenx86_64, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for x86_64, HVM",
|
||||
testXenx86_64HVM, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for ia64, no HVM, LE",
|
||||
testXenia64, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for ia64, HVM, LE",
|
||||
testXenia64HVM, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for ia64, no HVM, BE",
|
||||
testXenia64BE, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for ia64, HVM, BE",
|
||||
testXenia64BEHVM, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
if (virTestRun("Capabilities for ppc64",
|
||||
testXenppc64, NULL) != 0)
|
||||
ret = -1;
|
||||
|
||||
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
||||
VIR_TEST_MAIN(mymain)
|
Loading…
Reference in New Issue
Block a user