libvirt/src/conf
Nikolay Shirokovskiy 61a0026a94 qemu: Fix xml dump of autogenerated websocket
When save/migrate a domain and we autogenerated a port, then if we
print the inactive domain config, write out a -1 for the socket value;
otherwise, it's possible that the subsequent start will fail if the
autogenerated websocket used conflicts with an existing running config
that also used autogenerated websockets.

Examples:

== A. Can not restore domain with autoconfigured websocket.

domain 1 and 2 have autoconfigured websocket.

1. domain 1 is started then, saved
2. domain 2 is started
3. domain 1 restoration is failed:

error: internal error: qemu unexpectedly closed the monitor: 2016-11-21T10:23:11.356687Z
qemu-kvm: -vnc 0.0.0.0:2,websocket=5700: Failed to start VNC server on `(null)':
Failed to bind socket: Address already in use

== B. Can not migrate domain with autoconfigured websocket.

domain 1 on host A, domain 2 on host B, both have autoconfigured websocket

1. domain 1 started, domain 2 started
2. domain 1 migration to host B is failed with the above error.
2016-12-09 07:54:39 -05:00
..
capabilities.c
capabilities.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
cpu_conf.c Avoid compiler warnings in virCPUDefStealModel 2016-11-16 09:04:51 +01:00
cpu_conf.h cpu: Avoid adding <vendor> to custom CPUs 2016-11-15 15:49:16 +01:00
device_conf.c util: move virInterface(State|Link)/virNetDevFeature from conf to util 2016-06-26 19:33:07 -04:00
device_conf.h qemu: new functions to calculate/set device pciConnectFlags 2016-11-14 14:05:03 -05:00
domain_addr.c qemu: error out on USB ports out of range 2016-11-30 10:59:01 +01:00
domain_addr.h qemu: set/use proper pciConnectFlags during hotplug 2016-11-14 14:09:10 -05:00
domain_audit.c conf: Wire up the vhost-scsi connection from/to XML 2016-11-24 12:22:25 -05:00
domain_audit.h audit: Audit information about shmem devices 2016-09-12 19:41:43 +02:00
domain_capabilities.c qemu: Avoid reporting "host" as a supported CPU model 2016-11-25 20:59:19 +01:00
domain_capabilities.h qemu: Avoid reporting "host" as a supported CPU model 2016-11-25 20:59:19 +01:00
domain_conf.c qemu: Fix xml dump of autogenerated websocket 2016-12-09 07:54:39 -05:00
domain_conf.h qemu: mark user defined websocket as used 2016-12-09 07:54:34 -05:00
domain_event.c events: Add explicit lookup 'key' value 2016-07-01 07:15:38 -04:00
domain_event.h Add VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED event 2016-04-13 13:26:29 +02:00
domain_nwfilter.c
domain_nwfilter.h
interface_conf.c global: consistently use IP rather than Ip in identifiers 2016-06-26 19:33:07 -04:00
interface_conf.h global: consistently use IP rather than Ip in identifiers 2016-06-26 19:33:07 -04:00
netdev_bandwidth_conf.c
netdev_bandwidth_conf.h
netdev_vlan_conf.c
netdev_vlan_conf.h
netdev_vport_profile_conf.c
netdev_vport_profile_conf.h
network_conf.c network: Use new util function to check name 2016-10-20 19:09:14 +08:00
network_conf.h network: Track MAC address map 2016-12-06 13:33:18 +01:00
network_event.c events: Add explicit lookup 'key' value 2016-07-01 07:15:38 -04:00
network_event.h
networkcommon_conf.c util: move IP route & address object-related functions to virnetdevip.c 2016-06-26 19:33:09 -04:00
networkcommon_conf.h util: move IP route & address object-related functions to virnetdevip.c 2016-06-26 19:33:09 -04:00
node_device_conf.c conf: Fix initialization value of 'multi' in PCI address 2016-09-02 16:43:00 +02:00
node_device_conf.h tests: fix segfault in objecteventtest 2016-08-29 13:51:56 +03:00
node_device_event.c Introduce node device update event as top level event 2016-08-15 08:30:56 -04:00
node_device_event.h Introduce node device update event as top level event 2016-08-15 08:30:56 -04:00
numa_conf.c Remove separator argument from virBitmapParse 2016-06-20 12:09:52 +02:00
numa_conf.h
nwfilter_conf.c Use virDirOpenIfExists 2016-06-24 14:20:57 +02:00
nwfilter_conf.h nwfilter: Save config to disk if we generated a UUID 2016-05-02 10:06:04 -04:00
nwfilter_ipaddrmap.c
nwfilter_ipaddrmap.h
nwfilter_params.c
nwfilter_params.h
object_event_private.h conf: events: Fix coverity warning 2016-08-03 18:45:50 -04:00
object_event.c Clean timer in virObjectEventStateFlush 2016-10-12 12:54:47 +02:00
object_event.h Change virDomainEventState to virObjectLockable 2016-10-12 12:54:47 +02:00
secret_conf.c conf: Add new secret type "tls" 2016-09-09 08:20:05 -04:00
secret_conf.h conf: Add new secret type "tls" 2016-09-09 08:20:05 -04:00
snapshot_conf.c virDomainDefParseNode: Introduce @parseOpaque argument 2016-09-26 16:50:12 +02:00
snapshot_conf.h
storage_conf.c Fix Multiple Typos 2016-09-22 13:55:09 -04:00
storage_conf.h storage: implement storage lifecycle event APIs 2016-06-16 12:22:11 -04:00
storage_event.c events: Add explicit lookup 'key' value 2016-07-01 07:15:38 -04:00
storage_event.h Promote storage pool refresh lifecycle event to top level event 2016-06-24 18:26:11 +01:00
virchrdev.c
virchrdev.h
virdomainobjlist.c virDomainDefParse{File,String}: Introduce @parseOpaque argument 2016-09-26 16:50:12 +02:00
virdomainobjlist.h libxl: fix vm lock overwritten bug 2016-06-13 13:34:37 +02:00
virsecretobj.c util: Introduce virFileRewriteStr 2016-12-06 13:33:18 +01:00
virsecretobj.h secret: Introduce virSecretObjGetValue and virSecretObjGetValueSize 2016-04-25 15:45:29 -04:00