libvirt/src/qemu
John Ferlan 47e88b33be util: Add 'usage' for encryption
In order to use more common code and set up for a future type, modify the
encryption secret to allow the "usage" attribute or the "uuid" attribute
to define the secret. The "usage" in the case of a volume secret would be
the path to the volume as dictated by the backwards compatibility brought
on by virStorageGenerateQcowEncryption where it set up the usage field as
the vol->target.path and didn't allow someone to provide it. This carries
into virSecretObjListFindByUsageLocked which takes the secret usage attribute
value from from the domain disk definition and compares it against the
usage type from the secret definition. Since none of the code dealing
with qcow/qcow2 encryption secrets uses usage for lookup, it's a mostly
cosmetic change. The real usage comes in a future path where the encryption
is expanded to be a luks volume and the secret will allow definition of
the usage field.

This code will make use of the virSecretLookup{Parse|Format}Secret common code.

Signed-off-by: John Ferlan <jferlan@redhat.com>
2016-07-01 15:46:24 -04:00
..
EVENTHANDLERS.txt qemu: add short document on qemu event handlers 2014-10-06 13:50:57 -04:00
libvirtd_qemu.aug spice: introduce spice_auto_unix_socket config option 2016-06-09 14:43:39 +02:00
MIGRATION.txt
qemu_agent.c qemu: agent: Make setting of vcpus more robust 2016-06-22 09:26:08 +02:00
qemu_agent.h qemu: agent: Make setting of vcpus more robust 2016-06-22 09:26:08 +02:00
qemu_alias.c qemu: Utilize qemu secret objects for RBD auth/secret 2016-05-20 11:09:05 -04:00
qemu_alias.h qemu: Utilize qemu secret objects for RBD auth/secret 2016-05-20 11:09:05 -04:00
qemu_blockjob.c conf: add caps to virDomainObjFormat/SaveStatus 2016-02-05 10:57:08 +00:00
qemu_blockjob.h qemu: Use domain condition for synchronous block jobs 2015-06-19 15:15:10 +02:00
qemu_capabilities.c qemu: Remove redundant parameter in virQEMUCapsFillDomainCaps 2016-07-01 12:20:54 +02:00
qemu_capabilities.h qemu: Remove redundant parameter in virQEMUCapsFillDomainCaps 2016-07-01 12:20:54 +02:00
qemu_capspriv.h qemu: Export caps cache APIs for tests 2016-05-06 10:27:32 +02:00
qemu_cgroup.c Revert "qemu_cgroup: allow access to /dev/dri for virtio-vga" 2016-05-23 10:48:27 +02:00
qemu_cgroup.h Implement qemuSetupGlobalCpuCgroup 2016-03-01 14:30:11 +00:00
qemu_command.c qemu: Drop emitBootindex parameter 2016-07-01 12:20:54 +02:00
qemu_command.h qemu: Make qemuBuildSecretInfoProps global 2016-06-24 13:04:38 -04:00
qemu_conf.c driver config: Introduce virFirmware object 2016-06-13 14:13:16 -06:00
qemu_conf.h driver config: Introduce virFirmware object 2016-06-13 14:13:16 -06:00
qemu_domain_address.c qemu: Introduce qemuDomainMachineIsPSeries() 2016-06-24 10:17:59 +02:00
qemu_domain_address.h Add newDomain parameter to qemuDomainAssignAddresses 2016-06-23 07:45:31 +02:00
qemu_domain.c qemuDomainDeviceDefValidate: Drop unused qemuCaps 2016-06-28 13:33:05 +02:00
qemu_domain.h qemu: Introduce qemuDomainMachineIsPSeries() 2016-06-24 10:17:59 +02:00
qemu_driver.c qemu: Remove redundant parameter in virQEMUCapsFillDomainCaps 2016-07-01 12:20:54 +02:00
qemu_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
qemu_hostdev.c Use virDirOpenQuiet 2016-06-24 14:20:57 +02:00
qemu_hostdev.h qemu: hostdev: Introduce qemuHostdevUpdateActiveDomainDevices() 2015-10-26 13:50:35 +01:00
qemu_hotplug.c qemu: Avoid needless copies of static strings 2016-07-01 12:20:54 +02:00
qemu_hotplug.h qemu: Move and rename qemuDomainCheckEjectableMedia to qemuProcessRefreshDisks 2016-05-25 10:15:54 +02:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_interface.c Revert "qemu: support setting host-side IP addresses/routes" 2016-06-27 12:54:55 +02:00
qemu_interface.h autocreate tap device for ethernet network type 2016-03-23 11:37:59 +00:00
qemu_migration.c qemu: Use proper async job to refresh virtio channels 2016-06-30 09:41:39 +02:00
qemu_migration.h qemu: Implement auto convergence migration parameters 2016-06-22 15:54:21 +02:00
qemu_monitor_json.c Report auto convergence throttle rate in migration stats 2016-06-22 15:54:21 +02:00
qemu_monitor_json.h qemu: Rename qemuMonitorMigrationCompression 2016-06-22 15:54:21 +02:00
qemu_monitor_text.c qemuMonitorTextGetAllBlockStatsInfo: Fix line validation 2016-05-31 13:06:55 +02:00
qemu_monitor_text.h Remove qemuProcessInitPCIAddresses with dependencies 2016-05-20 07:43:39 +02:00
qemu_monitor.c qemu: Add support for cpu throttling parameters 2016-06-22 15:54:21 +02:00
qemu_monitor.h Report auto convergence throttle rate in migration stats 2016-06-22 15:54:21 +02:00
qemu_parse_command.c qemu: Introduce qemuDomainMachineIsPSeries() 2016-06-24 10:17:59 +02:00
qemu_parse_command.h qemu: parse: rename qemuCaps->caps 2016-02-19 09:45:23 -05:00
qemu_process.c util: Add 'usage' for encryption 2016-07-01 15:46:24 -04:00
qemu_process.h qemu: Use proper async job to refresh virtio channels 2016-06-30 09:41:39 +02:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu.conf spice: introduce spice_auto_unix_socket config option 2016-06-09 14:43:39 +02:00
test_libvirtd_qemu.aug.in spice: introduce spice_auto_unix_socket config option 2016-06-09 14:43:39 +02:00
THREADS.txt There is no virDomainFindBy{ID, Name, UUID} anymore 2015-08-03 13:08:00 +02:00