libvirt/src/qemu
Pavel Hrdina cd4a8b9304 conf: store "autoGenerated" for graphics listen in status XML
When libvirtd is started we call qemuDomainRecheckInternalPaths
to detect whether a domain has VNC socket path generated by libvirt
based on option from qemu.conf.  However if we are parsing status XML
for running domain the existing socket path can be generated also if
the config XML uses the new <listen type='socket'/> element without
specifying any socket.

The current code doesn't make difference how the socket was generated
and always marks it as "fromConfig".  We need to store the
"autoGenerated" value in the status XML in order to preserve that
information.

The difference between "fromConfig" and "autoGenerated" is important
for migration, because if the socket is based on "fromConfig" we don't
print it into the migratable XML and we assume that user has properly
configured qemu.conf on both hosts.  However if the socket is based
on "autoGenerated" it means that a new feature was used and therefore
we need to leave the socket in migratable XML to make sure that if
this feature is not supported on destination the migration will fail.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2017-03-09 10:22:43 +01:00
..
EVENTHANDLERS.txt qemu: add short document on qemu event handlers 2014-10-06 13:50:57 -04:00
libvirtd_qemu.aug qemu_conf: Add param memory_backing_dir 2017-02-09 14:27:19 +01:00
MIGRATION.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_agent.c qemu: agent: take monitor lock in qemuAgentNotifyEvent 2016-12-12 17:14:11 -05:00
qemu_agent.h qemu: agent: Make setting of vcpus more robust 2016-06-22 09:26:08 +02:00
qemu_alias.c qemu: Rename qemuAliasTLSObjFromChardevAlias 2017-02-22 06:31:40 -05:00
qemu_alias.h qemu: Rename qemuAliasTLSObjFromChardevAlias 2017-02-22 06:31:40 -05:00
qemu_blockjob.c qemu_blockjob: Avoid dereferencing NULL on OOM 2017-02-09 11:48:10 +01:00
qemu_blockjob.h qemu: Use domain condition for synchronous block jobs 2015-06-19 15:15:10 +02:00
qemu_capabilities.c qemu_capabilities: report SATA bus in domain capabilities 2017-03-07 09:11:03 +01:00
qemu_capabilities.h qemu: Probe "max" CPU model in TCG 2017-03-03 19:57:57 +01:00
qemu_capspriv.h qemu: Make virQEMUCapsInitCPUModel testable 2017-03-03 19:57:57 +01:00
qemu_cgroup.c qemu_cgroup: Only try to allow devices if devices CGroup's available 2017-02-23 11:21:26 +01:00
qemu_cgroup.h qemu_cgroup: Expose defaultDeviceACL 2016-12-15 09:25:16 +01:00
qemu_command.c doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_command.h qemu: propagate bridge MTU into qemu "host_mtu" option 2017-02-07 14:02:19 -05:00
qemu_conf.c qemu: Enforce qemuSecurity wrappers 2017-03-06 08:54:28 +01:00
qemu_conf.h qemu_conf: Check for namespaces availability more wisely 2017-02-15 12:43:23 +01:00
qemu_domain_address.c qemu: add missing break in qemuDomainDeviceCalculatePCIConnectFlags 2017-02-23 10:11:16 +00:00
qemu_domain_address.h qemu: propagate virQEMUDriver object to qemuDomainDeviceCalculatePCIConnectFlags 2016-11-30 15:28:07 -05:00
qemu_domain.c conf: store "autoGenerated" for graphics listen in status XML 2017-03-09 10:22:43 +01:00
qemu_domain.h doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_driver.c qemuDomainSaveImageUpdateDef: Don't overwrite errors from virDomainDefCheckABIStability 2017-03-08 10:09:15 +01:00
qemu_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
qemu_hostdev.c qemu: Add vhost-scsi string for -device parameter 2016-11-24 12:16:19 -05:00
qemu_hostdev.h qemu: Add vhost-scsi string for -device parameter 2016-11-24 12:16:19 -05:00
qemu_hotplug.c qemu: Introduce qemuDomainGetTLSObjects 2017-03-08 14:31:10 -05:00
qemu_hotplug.h qemu: Introduce qemuDomainGetTLSObjects 2017-03-08 14:31:10 -05:00
qemu_hotplugpriv.h qemu: Let tests override waiting time for device unplug 2013-08-26 16:09:55 +02:00
qemu_interface.c qemu: propagate bridge MTU into qemu "host_mtu" option 2017-02-07 14:02:19 -05:00
qemu_interface.h qemu: propagate bridge MTU into qemu "host_mtu" option 2017-02-07 14:02:19 -05:00
qemu_migration.c qemu: Enforce qemuSecurity wrappers 2017-03-06 08:54:28 +01:00
qemu_migration.h qemu: Implement auto convergence migration parameters 2016-06-22 15:54:21 +02:00
qemu_monitor_json.c qemu: Use full CPU model expansion on x86 2017-03-03 19:57:57 +01:00
qemu_monitor_json.h qemu: Use enum for CPU model expansion type 2017-03-03 19:57:57 +01:00
qemu_monitor_text.c qemu: catch failure of drive_add 2017-01-19 10:56:53 +00:00
qemu_monitor_text.h qemu: monitor: Return struct from qemuMonitor(Text|Json)QueryCPUs 2016-08-24 15:44:47 -04:00
qemu_monitor.c doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_monitor.h qemu: Use full CPU model expansion on x86 2017-03-03 19:57:57 +01:00
qemu_parse_command.c doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
qemu_parse_command.h qemu: parse: rename qemuCaps->caps 2016-02-19 09:45:23 -05:00
qemu_process.c qemu_process: don't probe iothreads if it's not supported by QEMU 2017-03-08 12:09:54 +01:00
qemu_process.h qemu: Use proper async job to refresh virtio channels 2016-06-30 09:41:39 +02:00
qemu_processpriv.h qemu: Export qemuProcessHandleDeviceDeleted for tests 2013-08-26 16:09:55 +02:00
qemu_security.c qemu_security: Introduce ImageLabel APIs 2017-02-09 08:04:57 +01:00
qemu_security.h qemu: Enforce qemuSecurity wrappers 2017-03-06 08:54:28 +01:00
qemu.conf doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00
test_libvirtd_qemu.aug.in qemuDomainGetHostdevPath: Create /dev/vfio/vfio iff needed 2017-02-20 07:21:58 +01:00
THREADS.txt doc: fix writing of QEMU 2017-03-08 17:33:07 +01:00