]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt-qemu: Add reference to QMP protocol documentation
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Jul 2026 14:48:43 +0000 (16:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Jul 2026 14:17:39 +0000 (16:17 +0200)
Add link to the qemu QMP protocol reference.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt-qemu.c

index 2898b719831fbfa37253d96fb72ec1e210f4e3e5..d6c68083f2ae7b2c606389e401b747a0cb40f74e 100644 (file)
@@ -51,6 +51,9 @@ VIR_LOG_INIT("libvirt-qemu");
  *     libvirt is possible as a means to test new QEMU features before
  *     they have support in libvirt, but no guarantees are made to safety
  *
+ * QEMU expects the command @cmd to be in the QMP format which is documented at
+ * https://www.qemu.org/docs/master/interop/qmp-spec.html
+ *
  * If VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP is set, the command is
  * considered to be a human monitor command and libvirt will automatically
  * convert it into QMP if needed.  In that case the @result will also
@@ -123,6 +126,9 @@ virDomainQemuMonitorCommand(virDomainPtr domain, const char *cmd,
  *     libvirt is possible as a means to test new QEMU features before
  *     they have support in libvirt, but no guarantees are made to safety
  *
+ * QEMU expects the command @cmd to be in the QMP format which is documented at
+ * https://www.qemu.org/docs/master/interop/qmp-spec.html
+ *
  * If VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP is set, the command is
  * considered to be a human monitor command and libvirt will automatically
  * convert it into QMP if needed.  In that case the @result will also