summaryrefslogtreecommitdiff
path: root/tests/domaincapstest.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2014-09-16 14:47:47 +0200
committerMichal Privoznik <mprivozn@redhat.com>2014-09-17 09:42:33 +0200
commit4f76621c0edb895431a6fc30c026865dbf1c1316 (patch)
tree291ea7520a28ea15ebcfde7c35ad5d693e15002d /tests/domaincapstest.c
parent865421c94a63f43c0164d598a73226d0e4231c93 (diff)
downloadlibvirt-4f76621c0edb895431a6fc30c026865dbf1c1316.tar.gz
domaincaps: Expose UEFI capability
As of 542899168c38 we learned libvirt to use UEFI for domains. However, management applications may firstly query if libvirt supports it. And this is where virConnectGetDomainCapabilities() API comes handy. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tests/domaincapstest.c')
-rw-r--r--tests/domaincapstest.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
index 78197e2350..f240643f2c 100644
--- a/tests/domaincapstest.c
+++ b/tests/domaincapstest.c
@@ -38,10 +38,18 @@ static void
fillAll(virDomainCapsPtr domCaps,
void *opaque ATTRIBUTE_UNUSED)
{
+ virDomainCapsOSPtr os = &domCaps->os;
+ virDomainCapsLoaderPtr loader = &os->loader;
virDomainCapsDeviceDiskPtr disk = &domCaps->disk;
virDomainCapsDeviceHostdevPtr hostdev = &domCaps->hostdev;
domCaps->maxvcpus = 255;
+ os->device.supported = true;
+
+ loader->device.supported = true;
+ SET_ALL_BITS(loader->type);
+ SET_ALL_BITS(loader->readonly);
+
disk->device.supported = true;
SET_ALL_BITS(disk->diskDevice);
SET_ALL_BITS(disk->bus);