libvirt/src/qemu
Michal Privoznik 88ed9d771e qemu: Connect to guest agent iff needed
https://bugzilla.redhat.com/show_bug.cgi?id=1293351

Since we already have virtio channel events, we know when guest
agent within guest has (dis-)connected. Instead of us blindly
connecting to a socket that no one is listening to, we can just
follow what qemu-ga does. This has a nice benefit that we don't
need to 'guest-ping' the agent just to timeout and find out
nobody is listening.

The way that this commit is implemented:
- don't connect in qemuProcessLaunch directly, defer that to event
  callback (which already follows the agent) -
  processSerialChangedEvent
- after migration is settled, before we resume vCPUs, ask qemu
  whether somebody is listening on the socket and if so, connect
  to it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2016-02-11 06:52:50 +01:00
..
EVENTHANDLERS.txt
libvirtd_qemu.aug qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
MIGRATION.txt
qemu_agent.c qemu: Print better warning in qemuAgentNotifyEvent 2016-01-15 08:33:49 +01:00
qemu_agent.h qemu: change qemuFindAgentConfig return type 2016-01-11 17:17:52 +01:00
qemu_blockjob.c conf: add caps to virDomainObjFormat/SaveStatus 2016-02-05 10:57:08 +00:00
qemu_blockjob.h
qemu_capabilities.c qemu: add capability check for memballoon 'deflate-on-oom' feature 2016-01-12 10:48:21 -05:00
qemu_capabilities.h qemu: add capability check for memballoon 'deflate-on-oom' feature 2016-01-12 10:48:21 -05:00
qemu_capspriv.h
qemu_cgroup.c qemu: iothread: Aggregate code to set IOThread tuning 2016-02-08 17:05:00 +01:00
qemu_cgroup.h qemu: iothread: Aggregate code to set IOThread tuning 2016-02-08 17:05:00 +01:00
qemu_command.c qemu: Split the command parsing routines into own module 2016-02-10 15:21:37 -05:00
qemu_command.h qemu: Split the command parsing routines into own module 2016-02-10 15:21:37 -05:00
qemu_conf.c qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
qemu_conf.h sysconf: Include unistd.h 2015-12-24 18:03:50 +01:00
qemu_domain.c qemu: Split the command parsing routines into own module 2016-02-10 15:21:37 -05:00
qemu_domain.h systemd: Modernize machine naming 2016-02-05 16:11:50 +01:00
qemu_driver.c qemu: Split the command parsing routines into own module 2016-02-10 15:21:37 -05:00
qemu_driver.h
qemu_hostdev.c qemu: hostdev: Introduce qemuHostdevUpdateActiveDomainDevices() 2015-10-26 13:50:35 +01:00
qemu_hostdev.h qemu: hostdev: Introduce qemuHostdevUpdateActiveDomainDevices() 2015-10-26 13:50:35 +01:00
qemu_hotplug.c conf: Move and optimize disk target duplicity checking 2016-02-08 09:35:01 +01:00
qemu_hotplug.h
qemu_hotplugpriv.h
qemu_interface.c
qemu_interface.h
qemu_migration.c qemu: Connect to guest agent iff needed 2016-02-11 06:52:50 +01:00
qemu_migration.h qemu: Use -incoming defer for migrations 2015-11-19 09:41:23 +01:00
qemu_monitor_json.c qemu: Split the command parsing routines into own module 2016-02-10 15:21:37 -05:00
qemu_monitor_json.h qemu: Rename qemuMonitorMigrationStatus struct 2016-01-08 18:18:58 +01:00
qemu_monitor_text.c qemu: snapshot: Correctly report qemu error on 'savevm' 2016-01-25 07:21:25 +01:00
qemu_monitor_text.h qemu: Rename qemuMonitorMigrationStatus struct 2016-01-08 18:18:58 +01:00
qemu_monitor.c qemu: Add support for migration iteration event 2016-01-21 16:36:08 +01:00
qemu_monitor.h qemu: Add support for migration iteration event 2016-01-21 16:36:08 +01:00
qemu_parse_command.c qemu: Split the command parsing routines into own module 2016-02-10 15:21:37 -05:00
qemu_parse_command.h qemu: Split the command parsing routines into own module 2016-02-10 15:21:37 -05:00
qemu_process.c qemu: Connect to guest agent iff needed 2016-02-11 06:52:50 +01:00
qemu_process.h qemu: Connect to guest agent iff needed 2016-02-11 06:52:50 +01:00
qemu_processpriv.h
qemu.conf qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
test_libvirtd_qemu.aug.in qemu: add support for sending QEMU stdout/stderr to virtlogd 2015-11-26 14:30:16 +00:00
THREADS.txt