libvirt/include/libvirt
Jiri Denemark b1b037fa5b Introduce VIR_DOMAIN_PAUSED_API_ERROR
Some APIs (migration, save/restore, snapshot, ...) require a domain to
be suspended temporarily. In case resuming the domain fails, the domain
will be unexpectedly left paused when the API finishes. This situation
is reported via VIR_DOMAIN_EVENT_SUSPENDED event with
VIR_DOMAIN_EVENT_SUSPENDED_API_ERROR detail. But we do not have a
corresponding reason for VIR_DOMAIN_PAUSED state and the reason would
remain set to the value used when the domain was paused. So the state
reason would suggest the operation is still running.

This patch changes the state reason to a new VIR_DOMAIN_PAUSED_API_ERROR
to make it clear the API that paused the domain already finished, but
failed to resume the domain.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2023-03-15 10:52:14 +01:00
..
libvirt-admin.h admin: Introduce virAdmConnectSetDaemonTimeout 2022-07-07 14:35:30 +02:00
libvirt-common.h.in docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-domain-checkpoint.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-domain-snapshot.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-domain.h Introduce VIR_DOMAIN_PAUSED_API_ERROR 2023-03-15 10:52:14 +01:00
libvirt-event.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-host.h Support cpu0-id of Qemu QMP query-sev-capabilities 2022-05-05 12:29:53 +02:00
libvirt-interface.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-lxc.h
libvirt-network.h include: Fix unmatched parentheses in comment 2022-05-04 19:16:52 +02:00
libvirt-nodedev.h nodedev: Add VIR_NODE_DEVICE_(CREATE|DEFINE)_XML_VALIDATE flags 2022-11-01 13:07:20 +01:00
libvirt-nwfilter.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-qemu.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-secret.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt-storage.h storage: Add VIR_STORAGE_VOL_CREATE_VALIDATE flag 2022-11-01 13:07:20 +01:00
libvirt-stream.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
libvirt.h backup: Introduce virDomainCheckpoint APIs 2019-07-26 16:48:58 -05:00
meson.build meson: Use @BASENAME@ more 2020-09-01 13:22:24 +02:00
virterror.h docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00