[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 27/36] multi-process: add support to parse device option
From: |
elena . ufimtseva |
Subject: |
[PATCH v6 27/36] multi-process: add support to parse device option |
Date: |
Mon, 6 Apr 2020 02:41:17 -0700 |
From: Elena Ufimtseva <address@hidden>
Enable remote process to parse device command line option
Signed-off-by: Elena Ufimtseva <address@hidden>
Signed-off-by: Jagannathan Raman <address@hidden>
Signed-off-by: John G Johnson <address@hidden>
---
remote/remote-opts.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/remote/remote-opts.c b/remote/remote-opts.c
index cb7837bf13..f077221c71 100644
--- a/remote/remote-opts.c
+++ b/remote/remote-opts.c
@@ -57,6 +57,13 @@ void parse_cmdline(int argc, char **argv, char **envp)
exit(1);
}
break;
+ case QEMU_OPTION_device:
+ if (!qemu_opts_parse_noisily(qemu_find_opts("device"),
+ optarg, true)) {
+ error_report("Unable to process device command");
+ exit(1);
+ }
+ break;
default:
break;
}
@@ -71,5 +78,8 @@ void parse_cmdline(int argc, char **argv, char **envp)
exit(0);
}
+ qemu_opts_foreach(qemu_find_opts("device"), device_init_func, NULL,
+ &error_fatal);
+
return;
}
--
2.25.GIT
- [PATCH v6 36/36] multi-process: add configure and usage information, (continued)
- [PATCH v6 36/36] multi-process: add configure and usage information, elena . ufimtseva, 2020/04/06
- [PATCH v6 32/36] multi-process/mon: stub functions to enable QMP module for remote process, elena . ufimtseva, 2020/04/06
- [PATCH v6 35/36] multi-process: add the concept description to docs/devel/qemu-multiprocess, elena . ufimtseva, 2020/04/06
- [PATCH v6 02/36] multi-process: Refactor machine_init and exit notifiers, elena . ufimtseva, 2020/04/06
- [PATCH v6 03/36] command-line: refractor parser code, elena . ufimtseva, 2020/04/06
- [PATCH v6 06/36] monitor: destaticize HMP commands, elena . ufimtseva, 2020/04/06
- [PATCH v6 09/36] multi-process: Add config option for multi-process QEMU, elena . ufimtseva, 2020/04/06
- [PATCH v6 11/36] multi-process: define mpqemu-link object, elena . ufimtseva, 2020/04/06
- [PATCH v6 24/36] multi-process: Retrieve PCI info from remote process, elena . ufimtseva, 2020/04/06
- [PATCH v6 27/36] multi-process: add support to parse device option,
elena . ufimtseva <=
- [PATCH v6 30/36] multi-process: perform device reset in the remote process, elena . ufimtseva, 2020/04/06
- [PATCH v6 34/36] multi-process/mon: Initialize QMP module for remote processes, elena . ufimtseva, 2020/04/06
- Re: [PATCH v6 00/36] Initial support for multi-process qemu, no-reply, 2020/04/06
- Re: [PATCH v6 00/36] Initial support for multi-process qemu, no-reply, 2020/04/06