• P
    qemu: always generate the same alias for tls-creds-x509 object · df93b5f5
    Pavel Hrdina 提交于
    There was inconsistency between alias used to create tls-creds-x509
    object and alias used to link that object to chardev while hotpluging.
    Hotplug ends with this error:
    
      error: Failed to detach device from channel-tcp.xml
      error: internal error: unable to execute QEMU command 'chardev-add':
      No TLS credentials with id 'objcharchannel3_tls0'
    
    In XML we have for example alias "serial0", but on qemu command line we
    generate "charserial0".
    
    The issue was that code, that creates QMP command to hotplug chardev
    devices uses only the second alias "charserial0" and that alias is also
    used to link the tls-creds-x509 object.
    
    This patch unifies the aliases for tls-creds-x509 to be always generated
    from "charserial0".
    Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
    df93b5f5
qemu_hotplug.c 152.9 KB