]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainObjPrivate: Annotate 'allowReboot' field
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Aug 2021 12:54:18 +0000 (14:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Aug 2021 13:32:44 +0000 (15:32 +0200)
Save further readers the headache of determining what it actually does
and note that it's not used with qemu version supporting the
'set-action' command.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.h

index abc3c7158d89fbb973d475dfee13cc26ae470436..f3c6bb33904395fc3702e04a5b7d1a4234404dcd 100644 (file)
@@ -154,6 +154,14 @@ struct _qemuDomainObjPrivate {
 
     bool fakeReboot;
     bool pausedShutdown;
+    /* allowReboot:
+     *
+     * Unused with new QEMU versions which have QEMU_CAPS_SET_ACTION.
+     *
+     * Otherwise if it's set to VIR_TRISTATE_BOOL_YES, QEMU was started with
+     * -no-shutdown, and if set to VIR_TRISTATE_BOOL_NO qemu was started with
+     * -no-reboot instead.
+     */
     virTristateBool allowReboot;
 
     int jobs_queued;