libvirt/src/qemu
Michal Privoznik 32c754e280 qemu: Make auto dump path generation embed driver aware
So far, libvirt generates the following path for automatic dumps:

  $autoDumpPath/$id-$shortName-$timestamp

where $autoDumpPath is where libvirt stores dumps of guests (e.g.
/var/lib/libvirt/qemu/dump), $id is domain ID and $shortName is
shortened version of domain name. So for instance, the generated
path may look something like this:

  /var/lib/libvirt/qemu/dump/1-QEMUGuest-2020-03-25-10:40:50

While in case of embed driver the following path would be
generated by default:

  $root/lib/libvirt/qemu/dump/1-QEMUGuest-2020-03-25-10:40:50

which is not clashing with other embed drivers, we allow users to
override the default and have all embed drivers use the same
prefix. This can create clashing paths. Fortunately, we can reuse
the approach for machined name generation
(v6.1.0-178-gc9bd08ee35) and include part of hash of the root in
the generated path.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2020-04-07 15:26:35 +02:00
..
EVENTHANDLERS.txt qemu/doc: Fix function name for handling events 2017-06-13 09:43:42 +02:00
libvirtd_qemu.aug qemu-conf: add configurable dbus-daemon location 2020-03-24 15:57:33 +01:00
Makefile.inc.am qemu: move qemuDomainDefValidateFeatures to qemu_validate.c 2020-04-03 16:25:30 +02:00
MIGRATION.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_agent.c qemu_agent.c: Use g_autofree in qemu_agent.c 2020-03-27 11:33:31 +01:00
qemu_agent.h qemuAgentGetFSInfo: expose 'report_unsupported' argument 2020-03-25 13:13:18 +01:00
qemu_alias.c qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_alias.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_backup.c qemuBackupBegin: Fix monitor access when rolling back due to failure 2020-03-26 17:56:30 +01:00
qemu_backup.h qemu: process: Terminate backup job on VM destroy 2020-01-06 10:15:36 +01:00
qemu_block.c qemuBlockStorageSourceGetURI: Pass through query component 2020-03-30 16:30:34 +02:00
qemu_block.h qemu: block: Support VIR_DOMAIN_BLOCK_COMMIT/PULL/REBASE_RELATIVE with blockdev 2020-03-30 16:28:48 +02:00
qemu_blockjob.c qemuBlockJobRefreshJobs: Warn readers that 'job' may be invalid after update 2020-04-03 09:34:49 +02:00
qemu_blockjob.h qemuBlockJobUpdate: Remove return value 2020-04-03 09:34:49 +02:00
qemu_capabilities.c qemu: capabilities: add QEMU_CAPS_FSDEV_MULTIDEVS 2020-04-06 13:55:12 +02:00
qemu_capabilities.h qemu: capabilities: add QEMU_CAPS_FSDEV_MULTIDEVS 2020-04-06 13:55:12 +02:00
qemu_capspriv.h qemu: capabilities: Add accessor to qemu caps machine types presence 2020-01-27 14:55:03 +01:00
qemu_cgroup.c qemu: Drop virQEMUDriverIsPrivileged() 2020-04-07 15:26:15 +02:00
qemu_cgroup.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
qemu_checkpoint.c qemu_checkpoint.c: Use g_autofree in qemuCheckpointPrepare() 2020-04-03 14:16:49 +02:00
qemu_checkpoint.h qemu: checkpoint: Track and relabel images for bitmap merging 2020-02-04 13:45:32 +01:00
qemu_command.c qemu: Make memory path generation embed driver aware 2020-04-07 15:26:32 +02:00
qemu_command.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_conf.c qemu: Make memory path generation embed driver aware 2020-04-07 15:26:32 +02:00
qemu_conf.h qemu: Make memory path generation embed driver aware 2020-04-07 15:26:32 +02:00
qemu_dbus.c qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_dbus.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_domain_address.c conf: qemu: add virtiofs fsdriver type 2020-03-04 12:08:50 +01:00
qemu_domain_address.h qemu_domain_address.c: turn qemuDomainFillDeviceIsolationGroup to void 2020-01-31 15:25:33 +01:00
qemu_domain.c qemuDomainGetMachineName: Access embeddedRoot from driver rather than cfg 2020-04-07 15:26:23 +02:00
qemu_domain.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_driver.c qemu: Make auto dump path generation embed driver aware 2020-04-07 15:26:35 +02:00
qemu_driver.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_extdevice.c qemu: remove dbus-vmstate code 2020-03-24 15:57:33 +01:00
qemu_extdevice.h qemu: pass virDomainObjPtr to qemuExtDevicesSetupCgroup 2020-03-04 12:08:50 +01:00
qemu_firmware.c util: json: Convert virJSONValueNewObject() to g_new0 2020-03-05 11:31:38 +01:00
qemu_firmware.h src: replace verify(expr) with G_STATIC_ASSERT(expr) 2020-01-17 10:02:01 +00:00
qemu_hostdev.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
qemu_hostdev.h qemu_hotplug: Prepare NVMe disks on hotplug 2019-12-17 10:04:44 +01:00
qemu_hotplug.c qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_hotplug.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_interface.c qemu: Drop virQEMUDriverIsPrivileged() 2020-04-07 15:26:15 +02:00
qemu_interface.h qemu-process: prepare slirp-helper 2019-09-06 12:47:47 +02:00
qemu_interop_config.c virsh: include virutil.h where used 2020-02-24 23:15:50 +01:00
qemu_interop_config.h qemu: generalize qemuFetchConfigs 2019-09-24 12:17:10 -04:00
qemu_migration_cookie.c qemu: Don't compare local and remote hostnames on migration 2020-03-05 10:01:32 +01:00
qemu_migration_cookie.h qemuMigrationCookieNBD: Extract embedded struct 2020-01-31 14:28:28 +01:00
qemu_migration_params.c qemuDomainGetSecretAESAlias: Replace outstanding uses with qemuAliasForSecret 2020-03-16 15:51:44 +01:00
qemu_migration_params.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
qemu_migration_paramspriv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_migration.c qemu: migration: Don't use return value of qemuBlockJobUpdate 2020-04-03 09:34:49 +02:00
qemu_migration.h qemu: Implement VIR_MIGRATE_PARAM_TLS_DESTINATION 2019-12-09 10:11:58 +01:00
qemu_monitor_json.c qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_monitor_json.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_monitor_priv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_monitor_text.c qemu_monitor_text.c: Use g_autofree 2020-03-24 14:52:45 +01:00
qemu_monitor_text.h qemu: Remove qemuMonitorTextSetCPU 2019-06-20 15:59:19 +02:00
qemu_monitor.c qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_monitor.h qemu: add dbus-vmstate helper migration support 2020-03-24 15:57:33 +01:00
qemu_process.c qemu: Make memory path generation embed driver aware 2020-04-07 15:26:32 +02:00
qemu_process.h qemu: start/stop an event thread for QMP probing 2020-03-11 14:44:47 +00:00
qemu_processpriv.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_qapi.c use g_ascii_isalpha instead of c_isalpha from gnulib 2019-12-10 13:49:24 +01:00
qemu_qapi.h src/qemu: use #pragma once in headers 2019-06-19 17:12:30 +02:00
qemu_security.c qemu: Tell secdrivers which images are top parent 2020-03-09 14:14:55 +01:00
qemu_security.h qemu: Tell secdrivers which images are top parent 2020-03-09 14:14:55 +01:00
qemu_shim.c qemu_shim: Ignore SIGPIPE 2020-03-05 11:24:51 +01:00
qemu_slirp.c WIP: qemu-slirp: update to follow current spec 2020-03-24 15:57:33 +01:00
qemu_slirp.h qemu: remove dbus-vmstate code 2020-03-24 15:57:33 +01:00
qemu_tpm.c src: convert code to use virPipe APIs 2020-02-04 14:00:44 +00:00
qemu_tpm.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
qemu_validate.c qemu: Drop virQEMUDriverIsPrivileged() 2020-04-07 15:26:15 +02:00
qemu_validate.h qemu: move qemuValidateDomainDeviceDef() to qemu_validate.c 2020-04-03 16:25:30 +02:00
qemu_vhost_user_gpu.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
qemu_vhost_user_gpu.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
qemu_vhost_user.c util: json: Convert virJSONValueNewObject() to g_new0 2020-03-05 11:31:38 +01:00
qemu_vhost_user.h qemu: use the vhost-user schemas to find binary 2020-03-04 12:08:50 +01:00
qemu_virtiofs.c qemuVirtioFSStop: Simplify daemon kill 2020-03-24 15:54:31 +01:00
qemu_virtiofs.h qemu: use the vhost-user schemas to find binary 2020-03-04 12:08:50 +01:00
qemu.conf qemu-conf: add configurable dbus-daemon location 2020-03-24 15:57:33 +01:00
test_libvirtd_qemu.aug.in qemu-conf: add configurable dbus-daemon location 2020-03-24 15:57:33 +01:00
THREADS.txt qemu: remove qemuDomainObjBegin/EndJobWithAgent() 2020-01-16 16:35:47 +01:00
virtqemud.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtqemud.service.in systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
virtqemud.sysconf qemu: Allow audio driver override in virtqemud 2020-04-03 11:50:57 +02:00