]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
Fix option parsing; override upstream `-d' option for `domain'.
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 16 Mar 2009 16:50:49 +0000 (16:50 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 16 Mar 2009 16:50:49 +0000 (16:50 +0000)
Pending change to xend to pass arguments differently, we need to
suppress the -d logfile parameter.  Also we accidentally dropped
HAS_ARG from -vcpus during the merge.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
vl.c

diff --git a/vl.c b/vl.c
index 172a3f75816a1a4d54809b594e543635f4d0c96d..9b9f7d5165ef755aba954fcbdd0bc2153fc6924a 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -4334,7 +4334,7 @@ static const QEMUOption qemu_options[] = {
     { "S", 0, QEMU_OPTION_S },
     { "s", 0, QEMU_OPTION_s },
     { "p", HAS_ARG, QEMU_OPTION_p },
-    { "d", HAS_ARG, QEMU_OPTION_d },
+//  { "d", HAS_ARG, QEMU_OPTION_d },
     { "hdachs", HAS_ARG, QEMU_OPTION_hdachs },
     { "L", HAS_ARG, QEMU_OPTION_L },
     { "bios", HAS_ARG, QEMU_OPTION_bios },
@@ -4377,7 +4377,7 @@ static const QEMUOption qemu_options[] = {
     { "direct_pci", HAS_ARG, QEMU_OPTION_direct_pci },
     { "pciemulation", HAS_ARG, QEMU_OPTION_pci_emulation },
     { "vncunused", 0, QEMU_OPTION_vncunused },
-    { "vcpus", 0, QEMU_OPTION_vcpus },
+    { "vcpus", HAS_ARG, QEMU_OPTION_vcpus },
 #ifdef CONFIG_XEN
     { "xen-domid", HAS_ARG, QEMU_OPTION_xen_domid },
     { "xen-create", 0, QEMU_OPTION_xen_create },