multiboot: copy the cmdline verbatim, unescape module strings
authorVlad Lungu <vlad.lungu@windriver.com>
Thu, 15 Dec 2016 12:32:04 +0000 (14:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Dec 2016 15:00:26 +0000 (16:00 +0100)
commit96a3d3927730c9445983f50ac0f55e0fce3851fa
tree3ad7b08d0095784da9b54bd0e478bbc41d1bf8b6
parente3592bc9d841c397eeda87f0019fab94ff71004b
multiboot: copy the cmdline verbatim, unescape module strings

get_opt_value() truncates the value at the first comma
Use memcpy() instead so that -append works correctly in the
presence of commas.  For -initrd to work right, instead,
unescape the module filename and parameters with get_opt_value()
before calling mb_add_cmdline().

Signed-off-by: Vlad Lungu <vlad.lungu@windriver.com>
Message-Id: <1481805124-16242-1-git-send-email-vlad.lungu@windriver.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/multiboot.c