• M
    Never overwrite a QemuOpt · dc9ca4ba
    Mark McLoughlin 提交于
    Rather than overwriting a QemuOpt, just add a new one to the tail and
    always do a reverse search for parameters to preserve the same
    behaviour. We use this order so that foreach() iterates over the opts
    in their original order.
    
    This will allow us handle options where multiple values for the same
    parameter is allowed - e.g. -net user,hostfwd=
    Signed-off-by: NMark McLoughlin <markmc@redhat.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    dc9ca4ba
qemu-option.c 20.6 KB