diff options
author | Laszlo Ersek <lersek@redhat.com> | 2013-03-21 00:23:17 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-04 19:23:08 -0500 |
commit | 0c764a9dfc0d480c21f325480aa2e69581841858 (patch) | |
tree | eaed2d79b7c9b91481eccb6d1d15d739a7101924 /vl.c | |
parent | 8ccbad5c7b61c46c1b69b8089b8965cd69c0a8de (diff) | |
download | qemu-0c764a9dfc0d480c21f325480aa2e69581841858.zip qemu-0c764a9dfc0d480c21f325480aa2e69581841858.tar.gz qemu-0c764a9dfc0d480c21f325480aa2e69581841858.tar.bz2 |
acpi_table_add(): accept QemuOpts and parse it with OptsVisitor
As one consequence, strtok() -- which modifies its argument -- is replaced
with g_strsplit().
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1363821803-3380-6-git-send-email-lersek@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3587,7 +3587,9 @@ int main(int argc, char **argv, char **envp) break; } case QEMU_OPTION_acpitable: - do_acpitable_option(optarg); + opts = qemu_opts_parse(qemu_find_opts("acpi"), optarg, 1); + g_assert(opts != NULL); + do_acpitable_option(opts); break; case QEMU_OPTION_smbios: do_smbios_option(optarg); |