• J
    Split qemuDomainChrInsert into two parts · daf51be5
    Ján Tomko 提交于
    Do the allocation first, then add the actual device.
    The second part should never fail. This is good
    for live hotplug where we don't want to remove the device
    on OOM after the monitor command succeeded.
    
    The only change in behavior is that on failure, the
    vmdef->consoles array is freed, not just the first console.
    daf51be5
domain_conf.c 704.5 KB