[RFC PATCH 6/7] [hyper-v] parse hyper-v parameters.

Vadim Rozenfeld
2011-10-09T18:53:17Z

---
vl.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/vl.c b/vl.c
index a6d1fc0..d9d4547 100644
--- a/vl.c
+++ b/vl.c
@@ -3186,6 +3186,16 @@ int main(int argc, char **argv, char **envp)
break;
}
case QEMU_OPTION_hyperv:
+ olist = qemu_find_opts("hyperv");
+ if (!olist) {
+ fprintf(stderr, "Hyper-V is not supported by this qemu build.\n");
+ exit(1);
+ }
+ opts = qemu_opts_parse(olist, optarg, 0);
+ if (!opts) {
+ fprintf(stderr, "parse error: %s\n", optarg);
+ exit(1);
+ }
break;
default:
os_parse_cmd_args(popt->index, optarg);
--
1.7.4.4