summaryrefslogtreecommitdiff
path: root/tests/virhostdevtest.c
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2016-04-06 09:46:49 -0400
committerJohn Ferlan <jferlan@redhat.com>2016-05-02 06:10:19 -0400
commit27726d8c214b69d4d55ff81c0392438c0a4cb2df (patch)
tree73608b66c1f70f35e646aee246bf6c4a5465a96f /tests/virhostdevtest.c
parent40d8e2ba37163a86d072452774b098b12c918c7e (diff)
downloadlibvirt-27726d8c214b69d4d55ff81c0392438c0a4cb2df.tar.gz
qemu: Introduce qemuDomainHostdevPrivatePtr
Modeled after the qemuDomainDiskPrivatePtr logic, create a privateData pointer in the _virDomainHostdevDef to allow storage of private data for a hypervisor in order to at least temporarily store auth/secrets data for usage during qemuBuildCommandLine. NB: Since the qemu_parse_command (qemuParseCommandLine) code is not expecting to restore the auth/secret data, there's no need to add code to handle this new structure there. Updated copyrights for modules touched. Some didn't have updates in a couple years even though changes have been made. Signed-off-by: John Ferlan <jferlan@redhat.com>
Diffstat (limited to 'tests/virhostdevtest.c')
-rw-r--r--tests/virhostdevtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/virhostdevtest.c b/tests/virhostdevtest.c
index 610b02a4ec..bc2b44a740 100644
--- a/tests/virhostdevtest.c
+++ b/tests/virhostdevtest.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+ * Copyright (C) 2014-2016 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -86,7 +87,7 @@ myInit(void)
for (i = 0; i < nhostdevs; i++) {
virDomainHostdevSubsys subsys;
- hostdevs[i] = virDomainHostdevDefAlloc();
+ hostdevs[i] = virDomainHostdevDefAlloc(NULL);
if (!hostdevs[i])
goto cleanup;
hostdevs[i]->mode = VIR_DOMAIN_HOSTDEV_MODE_SUBSYS;