Revision 8e00128d
b/vl.c | ||
---|---|---|
2316 | 2316 |
len += strlen(qemu_opt_get(opts, "security_model")); |
2317 | 2317 |
arg_fsdev = qemu_malloc((len + 1) * sizeof(*arg_fsdev)); |
2318 | 2318 |
|
2319 |
if (!arg_fsdev) { |
|
2320 |
fprintf(stderr, "No memory to parse -fsdev for %s\n", |
|
2321 |
optarg); |
|
2322 |
exit(1); |
|
2323 |
} |
|
2324 |
|
|
2325 | 2319 |
sprintf(arg_fsdev, "%s,id=%s,path=%s,security_model=%s", |
2326 | 2320 |
qemu_opt_get(opts, "fstype"), |
2327 | 2321 |
qemu_opt_get(opts, "mount_tag"), |
... | ... | |
2332 | 2326 |
len += 2*strlen(qemu_opt_get(opts, "mount_tag")); |
2333 | 2327 |
arg_9p = qemu_malloc((len + 1) * sizeof(*arg_9p)); |
2334 | 2328 |
|
2335 |
if (!arg_9p) { |
|
2336 |
fprintf(stderr, "No memory to parse -device for %s\n", |
|
2337 |
optarg); |
|
2338 |
exit(1); |
|
2339 |
} |
|
2340 |
|
|
2341 | 2329 |
sprintf(arg_9p, "virtio-9p-pci,fsdev=%s,mount_tag=%s", |
2342 | 2330 |
qemu_opt_get(opts, "mount_tag"), |
2343 | 2331 |
qemu_opt_get(opts, "mount_tag")); |
Also available in: Unified diff