diff options
author | John Ferlan <jferlan@redhat.com> | 2016-04-06 09:46:49 -0400 |
---|---|---|
committer | John Ferlan <jferlan@redhat.com> | 2016-05-02 06:10:19 -0400 |
commit | 27726d8c214b69d4d55ff81c0392438c0a4cb2df (patch) | |
tree | 73608b66c1f70f35e646aee246bf6c4a5465a96f /tests/virhostdevtest.c | |
parent | 40d8e2ba37163a86d072452774b098b12c918c7e (diff) | |
download | libvirt-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.c | 3 |
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; |