• Mark McLoughlin's avatar
    Never overwrite a QemuOpt · dc9ca4ba
    Mark McLoughlin authored
    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: default avatarMark McLoughlin <markmc@redhat.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    dc9ca4ba
qemu-option.c 20.6 KB