• P
    conf: store "autoGenerated" for graphics listen in status XML · cd4a8b93
    Pavel Hrdina 提交于
    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: NPavel Hrdina <phrdina@redhat.com>
    cd4a8b93
qemu_domain.c 249.1 KB