libvirt/src/qemu
Eric Blake c123ef7104 conf: store disk source as pointer, for easier manipulation
As part of the work on backing chains, I'm finding that it would
be easier to directly manipulate chains of pointers (adding a
snapshot merely adjusts pointers to form the correct list) rather
than copy data from one struct to another.  This patch converts
domain disk source to be a pointer.

In this patch, the pointer is ALWAYS allocated (thanks in part to
the previous patch forwarding all disk def allocation through a
common point), and all other changse are just mechanical fallout of
the new type; there should be no functional change.  It is possible
that we may want to leave the pointer NULL for a cdrom with no
medium in a later patch, but as that requires a closer audit of the
source to ensure we don't fault on a null dereference, I didn't do
it here.

* src/conf/domain_conf.h (_virDomainDiskDef): Change type of src.
* src/conf/domain_conf.c: Adjust all clients.
* src/security/security_selinux.c: Likewise.
* src/qemu/qemu_domain.c: Likewise.
* src/qemu/qemu_command.c: Likewise.
* src/qemu/qemu_conf.c: Likewise.
* src/qemu/qemu_process.c: Likewise.
* src/qemu/qemu_migration.c: Likewise.
* src/qemu/qemu_driver.c: Likewise.
* src/lxc/lxc_driver.c: Likewise.
* src/lxc/lxc_controller.c: Likewise.
* tests/securityselinuxlabeltest.c: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
2014-06-06 09:56:28 -06:00
..
libvirtd_qemu.aug migration: add support for migrateURI configuration 2014-05-20 13:13:29 +02:00
MIGRATION.txt qemu: Implement migration job phases 2011-07-27 08:45:09 -06:00
qemu_agent.c avoid 'sync' as variable name 2014-05-19 18:40:02 +02:00
qemu_agent.h qemu: Implement virDomain{Get,Set}Time 2014-05-15 16:44:45 +02:00
qemu_capabilities.c qemu: Fix specifying char devs for PPC 2014-05-27 08:48:57 +02:00
qemu_capabilities.h Add support for timestamping QEMU logs 2014-05-07 10:27:50 +02:00
qemu_cgroup.c Always report an error if virBitmapFormat fails 2014-06-06 14:35:19 +02:00
qemu_cgroup.h Auto-detect existing cgroup placement 2013-07-23 22:46:31 +01:00
qemu_command.c conf: store disk source as pointer, for easier manipulation 2014-06-06 09:56:28 -06:00
qemu_command.h qemu: extract common PCI handling functions 2014-05-13 20:17:54 +04:00
qemu_conf.c conf: store disk source as pointer, for easier manipulation 2014-06-06 09:56:28 -06:00
qemu_conf.h migration: add support for migrateURI configuration 2014-05-20 13:13:29 +02:00
qemu_domain.c conf: store disk source as pointer, for easier manipulation 2014-06-06 09:56:28 -06:00
qemu_domain.h conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_driver.c conf: store disk source as pointer, for easier manipulation 2014-06-06 09:56:28 -06: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 drivers: use virDirRead API 2014-04-28 17:52:45 -06:00
qemu_hostdev.h Capitalize USB, PCI and SCSI in hostdev methods 2014-03-12 16:20:01 +00:00
qemu_hotplug.c qemu: Return in from qemuDomainRemove*Device 2014-06-03 10:58:07 +02:00
qemu_hotplug.h qemu: Finish device removal in the original thread 2014-06-02 16:47:36 +02:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_migration.c conf: store disk source as pointer, for easier manipulation 2014-06-06 09:56:28 -06:00
qemu_migration.h libvirt support to force convergence of live guest migration 2014-03-21 14:17:15 +01:00
qemu_monitor_json.c qemu: monitor: Fix type of holdtime argument in qemuMonitorJSONSendKey 2014-06-03 14:24:14 +02:00
qemu_monitor_json.h conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_monitor_text.c conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_monitor_text.h conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_monitor.c conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_monitor.h conf: more enum cleanups in "src/conf/domain_conf.h" 2014-06-02 15:32:58 -06:00
qemu_process.c conf: store disk source as pointer, for easier manipulation 2014-06-06 09:56:28 -06:00
qemu_process.h util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu.conf migration: add support for migrateURI configuration 2014-05-20 13:13:29 +02:00
test_libvirtd_qemu.aug.in migration: add support for migrateURI configuration 2014-05-20 13:13:29 +02:00
THREADS.txt Remove qemuDriverLock from almost everywhere 2013-02-13 11:10:30 +00:00