libvirt/src/qemu
Eric Blake 02c4e24db7 snapshot: Add accessors for updating snapshot list relations
Rather than allowing a leaky abstraction where multiple drivers have
to open-code operations that update the relations in a
virDomainSnapshotObjList, it is better to add accessor functions so
that updates to relations are maintained closer to the internals.
This patch finishes the job started in the previous patch, by getting
rid of all direct access to nchildren, first_child, or sibling outside
of the lowest level functions, making it easier to refactor later on.

The lone new caller to virDomainSnapshotObjListSize() checks for a
return != 0, because it wants to handles errors (-1, only possible if
the hash table wasn't allocated) and existing snapshots (> 0) in the
same manner; we can drop the check for a current snapshot on the
grounds that there shouldn't be one if there are no snapshots.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2019-03-22 01:18:33 -05:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug
Makefile.inc.am qemu: Introduce basic skeleton for parsing firmware description 2019-03-12 15:29:44 +01:00
MIGRATION.txt
qemu_agent.c
qemu_agent.h
qemu_alias.c
qemu_alias.h
qemu_block.c
qemu_block.h
qemu_blockjob.c
qemu_blockjob.h
qemu_capabilities.c qemu: add virQEMUCapsSetVAList 2019-03-21 12:43:01 -04:00
qemu_capabilities.h qemu: add virQEMUCapsSetVAList 2019-03-21 12:43:01 -04:00
qemu_capspriv.h qemu_capabilities: Introduce virQEMUCapsGetCPUModelInfo 2019-03-05 14:47:49 +01:00
qemu_cgroup.c
qemu_cgroup.h
qemu_command.c snapshot: Break out virDomainSnapshotObjList into its own file 2019-03-15 11:43:09 -05:00
qemu_command.h
qemu_conf.c util: string: Use VIR_AUTOSTRINGLIST instead of VIR_AUTOPTR(virString) 2019-03-04 13:04:20 +01:00
qemu_conf.h
qemu_domain_address.c conf: Add a new 'xenbus' controller type 2019-03-13 12:06:52 -06:00
qemu_domain_address.h
qemu_domain.c snapshot: Add accessors for updating snapshot list relations 2019-03-22 01:18:33 -05:00
qemu_domain.h qemu_hotplug: Fix a rare race condition when detaching a device twice 2019-03-15 13:45:34 +01:00
qemu_driver.c snapshot: Add accessors for updating snapshot list relations 2019-03-22 01:18:33 -05:00
qemu_driver.h
qemu_extdevice.c
qemu_extdevice.h
qemu_firmware.c qemuFirmwareFetchConfigs: Fix check for @privileged 2019-03-13 13:11:25 +01:00
qemu_firmware.h qemu_firmware: Introduce qemuFirmwareFillDomain() 2019-03-12 15:29:44 +01:00
qemu_hostdev.c
qemu_hostdev.h
qemu_hotplug.c qemu: hotplug: Merge virtio and non-virtio disk unplug code 2019-03-15 16:11:20 +01:00
qemu_hotplug.h
qemu_hotplugpriv.h
qemu_interface.c
qemu_interface.h
qemu_migration_cookie.c qemu: Use VIR_XPATH_NODE_AUTORESTORE when XPath context is modified 2019-03-04 13:04:20 +01:00
qemu_migration_cookie.h
qemu_migration_params.c qemu: Don't set migration caps when changing postcopy bandwidth 2019-03-06 13:57:25 +01:00
qemu_migration_params.h
qemu_migration_paramspriv.h
qemu_migration.c snapshot: Break out virDomainSnapshotObjList into its own file 2019-03-15 11:43:09 -05:00
qemu_migration.h
qemu_monitor_json.c qemuMonitorJSONDelDevice: Return -2 on DeviceNotFound error 2019-03-15 13:45:34 +01:00
qemu_monitor_json.h
qemu_monitor_priv.h
qemu_monitor_text.c
qemu_monitor_text.h
qemu_monitor.c qemuMonitorJSONDelDevice: Return -2 on DeviceNotFound error 2019-03-15 13:45:34 +01:00
qemu_monitor.h
qemu_parse_command.c
qemu_parse_command.h
qemu_process.c qemu_process: Call qemuFirmwareFillDomain 2019-03-12 15:29:44 +01:00
qemu_process.h
qemu_processpriv.h
qemu_qapi.c
qemu_qapi.h
qemu_security.c
qemu_security.h
qemu_tpm.c
qemu_tpm.h
qemu.conf
test_libvirtd_qemu.aug.in
THREADS.txt