libvirt/src/qemu
Daniel P. Berrangé fc06debd0c qemu: remove pointless connect retry logic in agent
When the agent code was first introduced back in

  commit c160ce3316
  Author: Daniel P. Berrange <berrange@redhat.com>
  Date:   Wed Oct 5 18:31:54 2011 +0100

    QEMU guest agent support

there was code that would loop and retry the connection when opening
the agent socket. At this time, the only thing done in between the
opening of the monitor socket & opening of the agent socket was a
call to set the monitor capabilities. This was a no-op on non-QMP
versions, so in theory there could be a race which let us connect
to the monitor while the agent socket was still not created by QEMU.

In the modern world, however, we long ago mandated the use of QMP
for managing QEMU, so we're guaranteed to have a set capabilities
QMP call. Once we've seen a reply to this, we're guaranteed that
QEMU has fully initialized all backends and is in its event loop.

We can thus be sure the QEMU agent socket is present and don't need
to retry connections to it, even without having the chardev FD passing
feature.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-06-05 17:30:57 +01:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug qemu: conf: Add qemu.conf knobs for setting up TLS for NBD 2018-06-05 08:14:00 +02:00
Makefile.inc.am
MIGRATION.txt
qemu_agent.c qemu: remove pointless connect retry logic in agent 2018-06-05 17:30:57 +01:00
qemu_agent.h
qemu_alias.c qemu: alias: Rename qemuAliasFromDisk to qemuAliasDiskDriveFromDisk 2018-06-05 08:14:00 +02:00
qemu_alias.h qemu: alias: Rename qemuAliasFromDisk to qemuAliasDiskDriveFromDisk 2018-06-05 08:14:00 +02:00
qemu_block.c qemu: hotplug: Extract hotplug of TLS into qemuBlockStorageSourceAttachApply 2018-06-05 08:14:01 +02:00
qemu_block.h qemu: hotplug: Extract hotplug of TLS into qemuBlockStorageSourceAttachApply 2018-06-05 08:14:01 +02:00
qemu_blockjob.c
qemu_blockjob.h
qemu_capabilities.c qemu: don't retry connect() if doing FD passing 2018-06-05 17:30:57 +01:00
qemu_capabilities.h qemu: probe for -chardev 'fd' parameter for FD passing 2018-06-05 17:16:47 +01:00
qemu_capspriv.h testUpdateQEMUCaps: Don't leak host cpuData 2018-05-31 15:20:57 +02:00
qemu_cgroup.c
qemu_cgroup.h
qemu_command.c qemu: support passing pre-opened UNIX socket listen FD 2018-06-05 17:30:28 +01:00
qemu_command.h qemu: support passing pre-opened UNIX socket listen FD 2018-06-05 17:30:28 +01:00
qemu_conf.c qemu: conf: Add qemu.conf knobs for setting up TLS for NBD 2018-06-05 08:14:00 +02:00
qemu_conf.h qemu: conf: Add qemu.conf knobs for setting up TLS for NBD 2018-06-05 08:14:00 +02:00
qemu_domain_address.c conf: introduce <vsock> element 2018-05-29 15:42:03 +02:00
qemu_domain_address.h
qemu_domain.c vircrypto: Drop virCryptoGenerateRandom 2018-06-05 10:31:19 +02:00
qemu_domain.h qemu: domain: Split validation and setup of the virStorageSource 2018-06-05 08:13:58 +02:00
qemu_driver.c qemu: Fix detaching from persistent def in qemuDomainDetachDeviceAliasLiveAndConfig 2018-06-05 15:05:57 +02:00
qemu_driver.h
qemu_hostdev.c qemu: hostdev: Move parts of qemuHostdevHostSupportsPassthroughVFIO() into separate function 2018-06-05 08:33:13 +02:00
qemu_hostdev.h
qemu_hotplug.c qemu: command: Refactor disk commandline formatting 2018-06-05 08:14:01 +02:00
qemu_hotplug.h qemu: hotplug: Refactor 'secret' props formatting to qemuMonitorCreateObjectProps 2018-06-05 08:13:59 +02:00
qemu_hotplugpriv.h
qemu_interface.c
qemu_interface.h
qemu_migration_cookie.c src: Drop most of #ifdef WITH_GNUTLS 2018-06-05 14:32:36 +02:00
qemu_migration_cookie.h
qemu_migration_params.c qemu: Fix domain resume after failed migration 2018-06-05 09:39:24 +02:00
qemu_migration_params.h qemu: Fix domain resume after failed migration 2018-06-05 09:39:24 +02:00
qemu_migration_paramspriv.h
qemu_migration.c qemu: alias: Rename qemuAliasFromDisk to qemuAliasDiskDriveFromDisk 2018-06-05 08:14:00 +02:00
qemu_migration.h
qemu_monitor_json.c qemu: Remove code for setting up disk passphrases 2018-06-05 08:14:00 +02:00
qemu_monitor_json.h qemu: Remove code for setting up disk passphrases 2018-06-05 08:14:00 +02:00
qemu_monitor_text.c
qemu_monitor_text.h
qemu_monitor.c qemu: don't retry connect() if doing FD passing 2018-06-05 17:30:57 +01:00
qemu_monitor.h qemu: don't retry connect() if doing FD passing 2018-06-05 17:30:57 +01:00
qemu_parse_command.c
qemu_parse_command.h
qemu_process.c qemu: don't retry connect() if doing FD passing 2018-06-05 17:30:57 +01:00
qemu_process.h qemu: implement vsock hotplug 2018-06-05 07:51:13 +02:00
qemu_processpriv.h
qemu_qapi.c
qemu_qapi.h
qemu_security.c
qemu_security.h
qemu.conf qemu: conf: Add qemu.conf knobs for setting up TLS for NBD 2018-06-05 08:14:00 +02:00
test_libvirtd_qemu.aug.in qemu: conf: Add qemu.conf knobs for setting up TLS for NBD 2018-06-05 08:14:00 +02:00
THREADS.txt