Revision 8212c64f vl.c
b/vl.c | ||
---|---|---|
1813 | 1813 |
vsnprintf(optstr, sizeof(optstr), fmt, ap); |
1814 | 1814 |
va_end(ap); |
1815 | 1815 |
|
1816 |
opts = qemu_opts_parse(&qemu_drive_opts, optstr, NULL);
|
|
1816 |
opts = qemu_opts_parse(&qemu_drive_opts, optstr, 0);
|
|
1817 | 1817 |
if (!opts) { |
1818 | 1818 |
fprintf(stderr, "%s: huh? duplicate? (%s)\n", |
1819 | 1819 |
__FUNCTION__, optstr); |
... | ... | |
4370 | 4370 |
if (!strncmp(arg, "virtio", 6)) { |
4371 | 4371 |
if (arg[6] == ',') { |
4372 | 4372 |
/* have params -> parse them */ |
4373 |
opts = qemu_opts_parse(&qemu_device_opts, arg+7, NULL);
|
|
4373 |
opts = qemu_opts_parse(&qemu_device_opts, arg+7, 0);
|
|
4374 | 4374 |
if (!opts) |
4375 | 4375 |
return -1; |
4376 | 4376 |
} else { |
... | ... | |
5365 | 5365 |
default_monitor = 0; |
5366 | 5366 |
break; |
5367 | 5367 |
case QEMU_OPTION_mon: |
5368 |
opts = qemu_opts_parse(&qemu_mon_opts, optarg, "chardev");
|
|
5368 |
opts = qemu_opts_parse(&qemu_mon_opts, optarg, 1);
|
|
5369 | 5369 |
if (!opts) { |
5370 | 5370 |
fprintf(stderr, "parse error: %s\n", optarg); |
5371 | 5371 |
exit(1); |
... | ... | |
5373 | 5373 |
default_monitor = 0; |
5374 | 5374 |
break; |
5375 | 5375 |
case QEMU_OPTION_chardev: |
5376 |
opts = qemu_opts_parse(&qemu_chardev_opts, optarg, "backend");
|
|
5376 |
opts = qemu_opts_parse(&qemu_chardev_opts, optarg, 1);
|
|
5377 | 5377 |
if (!opts) { |
5378 | 5378 |
fprintf(stderr, "parse error: %s\n", optarg); |
5379 | 5379 |
exit(1); |
... | ... | |
5467 | 5467 |
add_device_config(DEV_USB, optarg); |
5468 | 5468 |
break; |
5469 | 5469 |
case QEMU_OPTION_device: |
5470 |
if (!qemu_opts_parse(&qemu_device_opts, optarg, "driver")) {
|
|
5470 |
if (!qemu_opts_parse(&qemu_device_opts, optarg, 1)) {
|
|
5471 | 5471 |
exit(1); |
5472 | 5472 |
} |
5473 | 5473 |
break; |
... | ... | |
5576 | 5576 |
configure_rtc_date_offset(optarg, 1); |
5577 | 5577 |
break; |
5578 | 5578 |
case QEMU_OPTION_rtc: |
5579 |
opts = qemu_opts_parse(&qemu_rtc_opts, optarg, NULL);
|
|
5579 |
opts = qemu_opts_parse(&qemu_rtc_opts, optarg, 0);
|
|
5580 | 5580 |
if (!opts) { |
5581 | 5581 |
fprintf(stderr, "parse error: %s\n", optarg); |
5582 | 5582 |
exit(1); |
Also available in: Unified diff