2014-06-25 11:24:53 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) Red Hat, Inc. 2014
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Michal Privoznik <mprivozn@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "testutils.h"
|
|
|
|
#include "domain_capabilities.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define VIR_FROM_THIS VIR_FROM_NONE
|
|
|
|
|
2014-09-17 09:33:35 +00:00
|
|
|
typedef int (*virDomainCapsFill)(virDomainCapsPtr domCaps,
|
|
|
|
void *opaque);
|
2014-06-25 11:24:53 +00:00
|
|
|
|
|
|
|
#define SET_ALL_BITS(x) \
|
|
|
|
memset(&(x.values), 0xff, sizeof(x.values))
|
|
|
|
|
2014-09-16 23:52:54 +00:00
|
|
|
static int ATTRIBUTE_SENTINEL
|
|
|
|
fillStringValues(virDomainCapsStringValuesPtr values, ...)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
va_list list;
|
|
|
|
const char *str;
|
|
|
|
|
|
|
|
va_start(list, values);
|
|
|
|
while ((str = va_arg(list, const char *))) {
|
|
|
|
if (VIR_REALLOC_N(values->values, values->nvalues + 1) < 0 ||
|
|
|
|
VIR_STRDUP(values->values[values->nvalues], str) < 0) {
|
|
|
|
ret = -1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
values->nvalues++;
|
|
|
|
}
|
|
|
|
va_end(list);
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-09-17 09:33:35 +00:00
|
|
|
static int
|
2016-04-25 12:20:58 +00:00
|
|
|
fillAllCaps(virDomainCapsPtr domCaps)
|
2014-06-25 11:24:53 +00:00
|
|
|
{
|
2014-09-16 12:47:47 +00:00
|
|
|
virDomainCapsOSPtr os = &domCaps->os;
|
|
|
|
virDomainCapsLoaderPtr loader = &os->loader;
|
2014-06-25 11:24:53 +00:00
|
|
|
virDomainCapsDeviceDiskPtr disk = &domCaps->disk;
|
2016-05-08 15:57:20 +00:00
|
|
|
virDomainCapsDeviceGraphicsPtr graphics = &domCaps->graphics;
|
2016-05-08 16:11:39 +00:00
|
|
|
virDomainCapsDeviceVideoPtr video = &domCaps->video;
|
2014-06-25 11:24:53 +00:00
|
|
|
virDomainCapsDeviceHostdevPtr hostdev = &domCaps->hostdev;
|
|
|
|
domCaps->maxvcpus = 255;
|
|
|
|
|
2016-03-10 18:52:52 +00:00
|
|
|
os->supported = true;
|
2014-09-16 12:47:47 +00:00
|
|
|
|
2016-03-10 18:52:52 +00:00
|
|
|
loader->supported = true;
|
2014-09-16 12:47:47 +00:00
|
|
|
SET_ALL_BITS(loader->type);
|
|
|
|
SET_ALL_BITS(loader->readonly);
|
2014-09-16 23:52:54 +00:00
|
|
|
if (fillStringValues(&loader->values,
|
|
|
|
"/foo/bar",
|
|
|
|
"/tmp/my_path",
|
|
|
|
NULL) < 0)
|
|
|
|
return -1;
|
2014-09-16 12:47:47 +00:00
|
|
|
|
2016-03-10 18:52:52 +00:00
|
|
|
disk->supported = true;
|
2014-06-25 11:24:53 +00:00
|
|
|
SET_ALL_BITS(disk->diskDevice);
|
|
|
|
SET_ALL_BITS(disk->bus);
|
|
|
|
|
2016-05-08 15:57:20 +00:00
|
|
|
graphics->supported = true;
|
|
|
|
SET_ALL_BITS(graphics->type);
|
|
|
|
|
2016-05-08 16:11:39 +00:00
|
|
|
video->supported = true;
|
|
|
|
SET_ALL_BITS(video->modelType);
|
|
|
|
|
2016-03-10 18:52:52 +00:00
|
|
|
hostdev->supported = true;
|
2014-06-25 11:24:53 +00:00
|
|
|
SET_ALL_BITS(hostdev->mode);
|
|
|
|
SET_ALL_BITS(hostdev->startupPolicy);
|
|
|
|
SET_ALL_BITS(hostdev->subsysType);
|
|
|
|
SET_ALL_BITS(hostdev->capsType);
|
|
|
|
SET_ALL_BITS(hostdev->pciBackend);
|
2014-09-17 09:33:35 +00:00
|
|
|
return 0;
|
2014-06-25 11:24:53 +00:00
|
|
|
}
|
|
|
|
|
2014-06-25 16:39:29 +00:00
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
#if WITH_QEMU
|
2014-06-25 16:39:29 +00:00
|
|
|
# include "testutilsqemu.h"
|
2014-09-16 23:52:54 +00:00
|
|
|
|
2014-09-17 09:33:35 +00:00
|
|
|
static int
|
2014-06-25 16:39:29 +00:00
|
|
|
fillQemuCaps(virDomainCapsPtr domCaps,
|
2016-04-25 12:20:58 +00:00
|
|
|
const char *name,
|
2016-05-10 17:59:48 +00:00
|
|
|
const char *arch,
|
2016-04-28 16:01:18 +00:00
|
|
|
const char *machine,
|
2016-04-25 12:20:58 +00:00
|
|
|
virQEMUDriverConfigPtr cfg)
|
2014-06-25 16:39:29 +00:00
|
|
|
{
|
2016-04-25 12:20:58 +00:00
|
|
|
int ret = -1;
|
|
|
|
char *path = NULL;
|
|
|
|
virQEMUCapsPtr qemuCaps = NULL;
|
2015-01-21 18:38:57 +00:00
|
|
|
virDomainCapsLoaderPtr loader = &domCaps->os.loader;
|
2014-06-25 16:39:29 +00:00
|
|
|
|
2016-04-28 15:45:41 +00:00
|
|
|
if (virAsprintf(&path, "%s/qemucapabilitiesdata/%s.%s.xml",
|
2016-05-10 17:59:48 +00:00
|
|
|
abs_srcdir, name, arch) < 0 ||
|
2016-04-25 12:20:58 +00:00
|
|
|
!(qemuCaps = qemuTestParseCapabilities(path)))
|
|
|
|
goto cleanup;
|
|
|
|
|
2016-04-28 16:01:18 +00:00
|
|
|
if (machine &&
|
|
|
|
VIR_STRDUP(domCaps->machine,
|
|
|
|
virQEMUCapsGetCanonicalMachine(qemuCaps, machine)) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
if (!domCaps->machine &&
|
|
|
|
VIR_STRDUP(domCaps->machine,
|
|
|
|
virQEMUCapsGetDefaultMachine(qemuCaps)) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
|
2014-09-18 06:30:40 +00:00
|
|
|
if (virQEMUCapsFillDomainCaps(domCaps, qemuCaps,
|
2016-05-17 22:45:27 +00:00
|
|
|
cfg->firmwares,
|
2016-06-27 13:12:34 +00:00
|
|
|
cfg->nfirmwares) < 0)
|
2016-04-25 12:20:58 +00:00
|
|
|
goto cleanup;
|
2014-06-25 16:39:29 +00:00
|
|
|
|
|
|
|
/* The function above tries to query host's KVM & VFIO capabilities by
|
|
|
|
* calling qemuHostdevHostSupportsPassthroughLegacy() and
|
|
|
|
* qemuHostdevHostSupportsPassthroughVFIO() which, however, can't be
|
|
|
|
* successfully mocked as they are not exposed as internal APIs. Therefore,
|
|
|
|
* instead of mocking set the expected values here by hand. */
|
|
|
|
VIR_DOMAIN_CAPS_ENUM_SET(domCaps->hostdev.pciBackend,
|
|
|
|
VIR_DOMAIN_HOSTDEV_PCI_BACKEND_DEFAULT,
|
|
|
|
VIR_DOMAIN_HOSTDEV_PCI_BACKEND_KVM,
|
|
|
|
VIR_DOMAIN_HOSTDEV_PCI_BACKEND_VFIO);
|
2014-09-17 15:17:03 +00:00
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
/* As of f05b6a918e28 we are expecting to see OVMF_CODE.fd file which
|
|
|
|
* may not exists everywhere. */
|
2015-01-21 18:38:57 +00:00
|
|
|
while (loader->values.nvalues)
|
|
|
|
VIR_FREE(loader->values.values[--loader->values.nvalues]);
|
|
|
|
|
|
|
|
if (fillStringValues(&loader->values,
|
2015-01-21 18:44:43 +00:00
|
|
|
"/usr/share/AAVMF/AAVMF_CODE.fd",
|
2015-01-21 18:38:57 +00:00
|
|
|
"/usr/share/OVMF/OVMF_CODE.fd",
|
|
|
|
NULL) < 0)
|
2014-06-25 11:24:53 +00:00
|
|
|
goto cleanup;
|
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
ret = 0;
|
2014-06-25 11:24:53 +00:00
|
|
|
cleanup:
|
2016-04-25 12:20:58 +00:00
|
|
|
virObjectUnref(qemuCaps);
|
|
|
|
VIR_FREE(path);
|
2014-09-16 23:52:54 +00:00
|
|
|
return ret;
|
2014-06-25 11:24:53 +00:00
|
|
|
}
|
2016-04-25 12:20:58 +00:00
|
|
|
#endif /* WITH_QEMU */
|
|
|
|
|
|
|
|
|
2016-05-16 21:21:59 +00:00
|
|
|
#ifdef WITH_LIBXL
|
|
|
|
# include "testutilsxen.h"
|
|
|
|
|
|
|
|
static int
|
|
|
|
fillXenCaps(virDomainCapsPtr domCaps)
|
|
|
|
{
|
|
|
|
virFirmwarePtr *firmwares;
|
|
|
|
int ret = -1;
|
|
|
|
|
|
|
|
if (VIR_ALLOC_N(firmwares, 2) < 0)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
if (VIR_ALLOC(firmwares[0]) < 0 || VIR_ALLOC(firmwares[1]) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
if (VIR_STRDUP(firmwares[0]->name, "/usr/lib/xen/boot/hvmloader") < 0 ||
|
|
|
|
VIR_STRDUP(firmwares[1]->name, "/usr/lib/xen/boot/ovmf.bin") < 0)
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
if (libxlMakeDomainCapabilities(domCaps, firmwares, 2) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
ret = 0;
|
|
|
|
|
|
|
|
cleanup:
|
|
|
|
virFirmwareFreeList(firmwares, 2);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
#endif /* WITH_LIBXL */
|
|
|
|
|
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
enum testCapsType {
|
|
|
|
CAPS_NONE,
|
|
|
|
CAPS_ALL,
|
|
|
|
CAPS_QEMU,
|
2016-05-16 21:21:59 +00:00
|
|
|
CAPS_LIBXL,
|
2016-04-25 12:20:58 +00:00
|
|
|
};
|
2014-06-25 11:24:53 +00:00
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
struct testData {
|
|
|
|
const char *name;
|
|
|
|
const char *emulator;
|
2014-06-25 11:24:53 +00:00
|
|
|
const char *machine;
|
2016-05-10 17:59:48 +00:00
|
|
|
const char *arch;
|
2014-06-25 11:24:53 +00:00
|
|
|
virDomainVirtType type;
|
2016-04-25 12:20:58 +00:00
|
|
|
enum testCapsType capsType;
|
|
|
|
const char *capsName;
|
|
|
|
void *capsOpaque;
|
2014-06-25 11:24:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
|
|
|
test_virDomainCapsFormat(const void *opaque)
|
|
|
|
{
|
2016-04-25 12:20:58 +00:00
|
|
|
const struct testData *data = opaque;
|
2014-06-25 11:24:53 +00:00
|
|
|
virDomainCapsPtr domCaps = NULL;
|
|
|
|
char *path = NULL;
|
|
|
|
char *domCapsXML = NULL;
|
|
|
|
int ret = -1;
|
|
|
|
|
2016-05-10 18:29:17 +00:00
|
|
|
if (virAsprintf(&path, "%s/domaincapsschemadata/%s.xml",
|
2016-04-25 12:20:58 +00:00
|
|
|
abs_srcdir, data->name) < 0)
|
2014-06-25 11:24:53 +00:00
|
|
|
goto cleanup;
|
|
|
|
|
2016-05-10 17:59:48 +00:00
|
|
|
if (!(domCaps = virDomainCapsNew(data->emulator, data->machine,
|
|
|
|
virArchFromString(data->arch),
|
2016-04-25 12:20:58 +00:00
|
|
|
data->type)))
|
2014-06-25 11:24:53 +00:00
|
|
|
goto cleanup;
|
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
switch (data->capsType) {
|
|
|
|
case CAPS_NONE:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case CAPS_ALL:
|
|
|
|
if (fillAllCaps(domCaps) < 0)
|
|
|
|
goto cleanup;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case CAPS_QEMU:
|
|
|
|
#if WITH_QEMU
|
2016-04-28 16:01:18 +00:00
|
|
|
if (fillQemuCaps(domCaps, data->capsName, data->arch, data->machine,
|
2016-04-25 12:19:49 +00:00
|
|
|
data->capsOpaque) < 0)
|
2016-04-25 12:20:58 +00:00
|
|
|
goto cleanup;
|
2016-05-16 21:21:59 +00:00
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
|
|
|
|
case CAPS_LIBXL:
|
|
|
|
#if WITH_LIBXL
|
|
|
|
if (fillXenCaps(domCaps) < 0)
|
|
|
|
goto cleanup;
|
2016-04-25 12:20:58 +00:00
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2014-06-25 11:24:53 +00:00
|
|
|
if (!(domCapsXML = virDomainCapsFormat(domCaps)))
|
|
|
|
goto cleanup;
|
|
|
|
|
2016-05-26 15:01:53 +00:00
|
|
|
if (virTestCompareToFile(domCapsXML, path) < 0)
|
2014-06-25 11:24:53 +00:00
|
|
|
goto cleanup;
|
|
|
|
|
|
|
|
ret = 0;
|
|
|
|
cleanup:
|
|
|
|
VIR_FREE(domCapsXML);
|
|
|
|
VIR_FREE(path);
|
|
|
|
virObjectUnref(domCaps);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
mymain(void)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
#if WITH_QEMU
|
2014-09-16 23:52:54 +00:00
|
|
|
virQEMUDriverConfigPtr cfg = virQEMUDriverConfigNew(false);
|
|
|
|
|
2015-01-26 16:09:36 +00:00
|
|
|
if (!cfg)
|
|
|
|
return EXIT_FAILURE;
|
2016-04-25 12:20:58 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DO_TEST(Name, Emulator, Machine, Arch, Type, CapsType) \
|
|
|
|
do { \
|
|
|
|
struct testData data = { \
|
|
|
|
.name = Name, \
|
|
|
|
.emulator = Emulator, \
|
|
|
|
.machine = Machine, \
|
|
|
|
.arch = Arch, \
|
|
|
|
.type = Type, \
|
|
|
|
.capsType = CapsType, \
|
|
|
|
}; \
|
2016-05-26 15:01:50 +00:00
|
|
|
if (virTestRun(Name, test_virDomainCapsFormat, &data) < 0) \
|
2016-04-25 12:20:58 +00:00
|
|
|
ret = -1; \
|
|
|
|
} while (0)
|
2015-01-26 16:09:36 +00:00
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
#define DO_TEST_QEMU(Name, CapsName, Emulator, Machine, Arch, Type) \
|
|
|
|
do { \
|
2016-05-10 18:29:17 +00:00
|
|
|
char *name = NULL; \
|
|
|
|
if (virAsprintf(&name, "qemu_%s%s%s.%s", \
|
|
|
|
Name, \
|
|
|
|
Machine ? "-" : "", Machine ? Machine : "", \
|
|
|
|
Arch) < 0) { \
|
|
|
|
ret = -1; \
|
|
|
|
break; \
|
|
|
|
} \
|
2016-04-25 12:20:58 +00:00
|
|
|
struct testData data = { \
|
2016-05-10 18:29:17 +00:00
|
|
|
.name = name, \
|
2016-04-25 12:20:58 +00:00
|
|
|
.emulator = Emulator, \
|
|
|
|
.machine = Machine, \
|
|
|
|
.arch = Arch, \
|
|
|
|
.type = Type, \
|
|
|
|
.capsType = CAPS_QEMU, \
|
|
|
|
.capsName = CapsName, \
|
|
|
|
.capsOpaque = cfg, \
|
|
|
|
}; \
|
2016-05-26 15:01:50 +00:00
|
|
|
if (virTestRun(name, test_virDomainCapsFormat, &data) < 0) \
|
2016-04-25 12:20:58 +00:00
|
|
|
ret = -1; \
|
2016-05-10 18:29:17 +00:00
|
|
|
VIR_FREE(name); \
|
2014-06-25 16:39:29 +00:00
|
|
|
} while (0)
|
|
|
|
|
2016-05-16 21:21:59 +00:00
|
|
|
#define DO_TEST_LIBXL(Name, Emulator, Machine, Arch, Type) \
|
|
|
|
do { \
|
|
|
|
struct testData data = { \
|
|
|
|
.name = Name, \
|
|
|
|
.emulator = Emulator, \
|
|
|
|
.machine = Machine, \
|
|
|
|
.arch = Arch, \
|
|
|
|
.type = Type, \
|
|
|
|
.capsType = CAPS_LIBXL, \
|
|
|
|
}; \
|
|
|
|
if (virTestRun(Name, test_virDomainCapsFormat, &data) < 0) \
|
|
|
|
ret = -1; \
|
|
|
|
} while (0)
|
|
|
|
|
2016-04-25 12:20:58 +00:00
|
|
|
DO_TEST("basic", "/bin/emulatorbin", "my-machine-type",
|
2016-05-10 17:59:48 +00:00
|
|
|
"x86_64", VIR_DOMAIN_VIRT_UML, CAPS_NONE);
|
2016-04-25 12:20:58 +00:00
|
|
|
DO_TEST("full", "/bin/emulatorbin", "my-machine-type",
|
2016-05-10 17:59:48 +00:00
|
|
|
"x86_64", VIR_DOMAIN_VIRT_KVM, CAPS_ALL);
|
2016-04-25 12:20:58 +00:00
|
|
|
|
|
|
|
#if WITH_QEMU
|
|
|
|
|
2016-05-24 13:54:54 +00:00
|
|
|
DO_TEST_QEMU("1.7.0", "caps_1.7.0",
|
2016-04-28 16:01:18 +00:00
|
|
|
"/usr/bin/qemu-system-x86_64", NULL,
|
2016-05-10 17:59:48 +00:00
|
|
|
"x86_64", VIR_DOMAIN_VIRT_KVM);
|
2014-06-25 16:39:29 +00:00
|
|
|
|
2016-05-10 18:39:11 +00:00
|
|
|
DO_TEST_QEMU("2.6.0", "caps_2.6.0",
|
2016-04-28 12:24:51 +00:00
|
|
|
"/usr/bin/qemu-system-x86_64", NULL,
|
2016-05-10 17:59:48 +00:00
|
|
|
"x86_64", VIR_DOMAIN_VIRT_KVM);
|
2016-04-28 12:24:51 +00:00
|
|
|
|
2016-05-10 18:39:11 +00:00
|
|
|
DO_TEST_QEMU("2.6.0", "caps_2.6.0-gicv2",
|
2016-04-28 12:24:51 +00:00
|
|
|
"/usr/bin/qemu-system-aarch64", NULL,
|
2016-05-10 17:59:48 +00:00
|
|
|
"aarch64", VIR_DOMAIN_VIRT_KVM);
|
2016-04-28 12:24:51 +00:00
|
|
|
|
2016-05-10 18:39:11 +00:00
|
|
|
DO_TEST_QEMU("2.6.0-gicv2", "caps_2.6.0-gicv2",
|
2016-04-28 12:24:51 +00:00
|
|
|
"/usr/bin/qemu-system-aarch64", "virt",
|
2016-05-10 17:59:48 +00:00
|
|
|
"aarch64", VIR_DOMAIN_VIRT_KVM);
|
2016-04-28 12:24:51 +00:00
|
|
|
|
2016-05-10 18:39:11 +00:00
|
|
|
DO_TEST_QEMU("2.6.0-gicv3", "caps_2.6.0-gicv3",
|
2016-04-28 12:24:51 +00:00
|
|
|
"/usr/bin/qemu-system-aarch64", "virt",
|
2016-05-10 17:59:48 +00:00
|
|
|
"aarch64", VIR_DOMAIN_VIRT_KVM);
|
2016-04-28 12:24:51 +00:00
|
|
|
|
2016-05-10 18:39:11 +00:00
|
|
|
DO_TEST_QEMU("2.6.0", "caps_2.6.0",
|
2016-04-28 12:24:51 +00:00
|
|
|
"/usr/bin/qemu-system-ppc64", NULL,
|
2016-05-10 17:59:48 +00:00
|
|
|
"ppc64le", VIR_DOMAIN_VIRT_KVM);
|
2016-04-28 12:24:51 +00:00
|
|
|
|
2014-06-25 16:39:29 +00:00
|
|
|
#endif /* WITH_QEMU */
|
|
|
|
|
2016-05-16 21:21:59 +00:00
|
|
|
#if WITH_LIBXL
|
|
|
|
|
2016-06-17 15:47:34 +00:00
|
|
|
# ifdef LIBXL_HAVE_PVUSB
|
|
|
|
# define LIBXL_XENPV_CAPS "libxl-xenpv-usb"
|
|
|
|
# define LIBXL_XENFV_CAPS "libxl-xenfv-usb"
|
|
|
|
# else
|
|
|
|
# define LIBXL_XENPV_CAPS "libxl-xenpv"
|
|
|
|
# define LIBXL_XENFV_CAPS "libxl-xenfv"
|
|
|
|
# endif
|
|
|
|
|
|
|
|
DO_TEST_LIBXL(LIBXL_XENPV_CAPS, "/usr/bin/qemu-system-x86_64",
|
2016-05-16 21:21:59 +00:00
|
|
|
"xenpv", "x86_64", VIR_DOMAIN_VIRT_XEN);
|
2016-06-17 15:47:34 +00:00
|
|
|
DO_TEST_LIBXL(LIBXL_XENFV_CAPS, "/usr/bin/qemu-system-x86_64",
|
2016-05-16 21:21:59 +00:00
|
|
|
"xenfv", "x86_64", VIR_DOMAIN_VIRT_XEN);
|
|
|
|
|
|
|
|
#endif /* WITH_LIBXL */
|
|
|
|
|
2014-06-25 11:24:53 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:40:31 +00:00
|
|
|
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/domaincapsmock.so")
|