Revision 3329f07b blockdev.c
b/blockdev.c | ||
---|---|---|
50 | 50 |
vsnprintf(optstr, sizeof(optstr), fmt, ap); |
51 | 51 |
va_end(ap); |
52 | 52 |
|
53 |
opts = qemu_opts_parse(&qemu_drive_opts, optstr, 0);
|
|
53 |
opts = qemu_opts_parse(qemu_find_opts("drive"), optstr, 0);
|
|
54 | 54 |
if (!opts) { |
55 | 55 |
return NULL; |
56 | 56 |
} |
... | ... | |
451 | 451 |
break; |
452 | 452 |
case IF_VIRTIO: |
453 | 453 |
/* add virtio block device */ |
454 |
opts = qemu_opts_create(&qemu_device_opts, NULL, 0);
|
|
454 |
opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);
|
|
455 | 455 |
qemu_opt_set(opts, "driver", "virtio-blk-pci"); |
456 | 456 |
qemu_opt_set(opts, "drive", dinfo->id); |
457 | 457 |
if (devaddr) |
Also available in: Unified diff