All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes
@ 2012-07-10 19:50 Luiz Capitulino
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 1/5] qemu-option: add alias support Luiz Capitulino
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Luiz Capitulino @ 2012-07-10 19:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: jan.kiszka, aliguori, afaerber

Today, machine options use underscores to separate words (eg. kernel_irqchip),
however upcoming QOM conversion wants to use dashes instead.

This series converts all machine type options to use dashes. Command-line
backwards compatibility is maintained by adding an alias for each changed
option.

 device_tree.c          |  2 +-
 hw/ppce500_mpc8544ds.c |  2 +-
 kvm-all.c              |  2 +-
 qemu-config.c          | 12 ++++++++----
 qemu-option.c          |  9 ++++++++-
 qemu-option.h          |  1 +
 qemu-options.hx        |  8 ++++----
 target-i386/kvm.c      |  2 +-
 8 files changed, 25 insertions(+), 13 deletions(-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Qemu-devel] [PATCH 1/5] qemu-option: add alias support
  2012-07-10 19:50 [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Luiz Capitulino
@ 2012-07-10 19:50 ` Luiz Capitulino
  2012-07-11  7:00   ` Markus Armbruster
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 2/5] machine: rename kernel_irqchip to kernel-irqchip Luiz Capitulino
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 10+ messages in thread
From: Luiz Capitulino @ 2012-07-10 19:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: jan.kiszka, aliguori, afaerber

It allows for specifying an alias for each option name, see next commits
examples.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qemu-option.c | 9 ++++++++-
 qemu-option.h | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/qemu-option.c b/qemu-option.c
index bb3886c..59a1f6e 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -616,6 +616,7 @@ static void opt_set(QemuOpts *opts, const char *name, const char *value,
                     bool prepend, Error **errp)
 {
     QemuOpt *opt;
+    const char *optname;
     const QemuOptDesc *desc = opts->list->desc;
     Error *local_err = NULL;
     int i;
@@ -624,18 +625,24 @@ static void opt_set(QemuOpts *opts, const char *name, const char *value,
         if (strcmp(desc[i].name, name) == 0) {
             break;
         }
+        if (desc[i].alias && strcmp(desc[i].alias, name) == 0) {
+            break;
+        }
     }
     if (desc[i].name == NULL) {
         if (i == 0) {
             /* empty list -> allow any */;
+            optname = name;
         } else {
             error_set(errp, QERR_INVALID_PARAMETER, name);
             return;
         }
+    } else {
+        optname = desc[i].name;
     }
 
     opt = g_malloc0(sizeof(*opt));
-    opt->name = g_strdup(name);
+    opt->name = g_strdup(optname);
     opt->opts = opts;
     if (prepend) {
         QTAILQ_INSERT_HEAD(&opts->head, opt, next);
diff --git a/qemu-option.h b/qemu-option.h
index 951dec3..7106d2f 100644
--- a/qemu-option.h
+++ b/qemu-option.h
@@ -94,6 +94,7 @@ enum QemuOptType {
 
 typedef struct QemuOptDesc {
     const char *name;
+    const char *alias;
     enum QemuOptType type;
     const char *help;
 } QemuOptDesc;
-- 
1.7.11.1.116.g8228a23

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Qemu-devel] [PATCH 2/5] machine: rename kernel_irqchip to kernel-irqchip
  2012-07-10 19:50 [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Luiz Capitulino
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 1/5] qemu-option: add alias support Luiz Capitulino
@ 2012-07-10 19:50 ` Luiz Capitulino
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 3/5] machine: rename kvm_shadow_mem to kvm-shadow-mem Luiz Capitulino
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Luiz Capitulino @ 2012-07-10 19:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: jan.kiszka, aliguori, afaerber

QOM conversion wants option names with dashes (instead of underscores),
this commit does the change for the kernel_irqchip machine option.

The underscore is still supported through an option alias for backwards
compatibility.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 kvm-all.c       | 2 +-
 qemu-config.c   | 3 ++-
 qemu-options.hx | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/kvm-all.c b/kvm-all.c
index f8e4328..c988bb6 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1168,7 +1168,7 @@ static int kvm_irqchip_create(KVMState *s)
 
     if (QTAILQ_EMPTY(&list->head) ||
         !qemu_opt_get_bool(QTAILQ_FIRST(&list->head),
-                           "kernel_irqchip", true) ||
+                           "kernel-irqchip", true) ||
         !kvm_check_extension(s, KVM_CAP_IRQCHIP)) {
         return 0;
     }
diff --git a/qemu-config.c b/qemu-config.c
index 5c3296b..3fe91a8 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -560,7 +560,8 @@ static QemuOptsList qemu_machine_opts = {
             .type = QEMU_OPT_STRING,
             .help = "accelerator list",
         }, {
-            .name = "kernel_irqchip",
+            .name = "kernel-irqchip",
+            .alias= "kernel_irqchip",
             .type = QEMU_OPT_BOOL,
             .help = "use KVM in-kernel irqchip",
         }, {
diff --git a/qemu-options.hx b/qemu-options.hx
index ecf7ca1..b149852 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -32,7 +32,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \
     "                selects emulated machine (-machine ? for list)\n"
     "                property accel=accel1[:accel2[:...]] selects accelerator\n"
     "                supported accelerators are kvm, xen, tcg (default: tcg)\n"
-    "                kernel_irqchip=on|off controls accelerated irqchip support\n"
+    "                kernel-irqchip=on|off controls accelerated irqchip support\n"
     "                kvm_shadow_mem=size of KVM shadow MMU\n",
     QEMU_ARCH_ALL)
 STEXI
@@ -46,7 +46,7 @@ This is used to enable an accelerator. Depending on the target architecture,
 kvm, xen, or tcg can be available. By default, tcg is used. If there is more
 than one accelerator specified, the next one is used if the previous one fails
 to initialize.
-@item kernel_irqchip=on|off
+@item kernel-irqchip=on|off
 Enables in-kernel irqchip support for the chosen accelerator when available.
 @item kvm_shadow_mem=size
 Defines the size of the KVM shadow MMU.
-- 
1.7.11.1.116.g8228a23

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Qemu-devel] [PATCH 3/5] machine: rename kvm_shadow_mem to kvm-shadow-mem
  2012-07-10 19:50 [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Luiz Capitulino
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 1/5] qemu-option: add alias support Luiz Capitulino
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 2/5] machine: rename kernel_irqchip to kernel-irqchip Luiz Capitulino
@ 2012-07-10 19:50 ` Luiz Capitulino
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 4/5] machine: rename phandle_start to phandle-start Luiz Capitulino
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Luiz Capitulino @ 2012-07-10 19:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: jan.kiszka, aliguori, afaerber

QOM conversion wants option names with dashes (instead of underscores),
this commit does the change for the kvm_shadow_mem machine option.

The underscore is still supported through an option alias for backwards
compatibility.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qemu-config.c     | 3 ++-
 qemu-options.hx   | 4 ++--
 target-i386/kvm.c | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/qemu-config.c b/qemu-config.c
index 3fe91a8..909fae9 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -565,7 +565,8 @@ static QemuOptsList qemu_machine_opts = {
             .type = QEMU_OPT_BOOL,
             .help = "use KVM in-kernel irqchip",
         }, {
-            .name = "kvm_shadow_mem",
+            .name = "kvm-shadow-mem",
+            .alias= "kvm_shadow_mem",
             .type = QEMU_OPT_SIZE,
             .help = "KVM shadow MMU size",
         }, {
diff --git a/qemu-options.hx b/qemu-options.hx
index b149852..b95438f 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -33,7 +33,7 @@ DEF("machine", HAS_ARG, QEMU_OPTION_machine, \
     "                property accel=accel1[:accel2[:...]] selects accelerator\n"
     "                supported accelerators are kvm, xen, tcg (default: tcg)\n"
     "                kernel-irqchip=on|off controls accelerated irqchip support\n"
-    "                kvm_shadow_mem=size of KVM shadow MMU\n",
+    "                kvm-shadow-mem=size of KVM shadow MMU\n",
     QEMU_ARCH_ALL)
 STEXI
 @item -machine [type=]@var{name}[,prop=@var{value}[,...]]
@@ -48,7 +48,7 @@ than one accelerator specified, the next one is used if the previous one fails
 to initialize.
 @item kernel-irqchip=on|off
 Enables in-kernel irqchip support for the chosen accelerator when available.
-@item kvm_shadow_mem=size
+@item kvm-shadow-mem=size
 Defines the size of the KVM shadow MMU.
 @end table
 ETEXI
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 0d0d8f6..90bf4d4 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -698,7 +698,7 @@ int kvm_arch_init(KVMState *s)
 
     if (!QTAILQ_EMPTY(&list->head)) {
         shadow_mem = qemu_opt_get_size(QTAILQ_FIRST(&list->head),
-                                       "kvm_shadow_mem", -1);
+                                       "kvm-shadow-mem", -1);
         if (shadow_mem != -1) {
             shadow_mem /= 4096;
             ret = kvm_vm_ioctl(s, KVM_SET_NR_MMU_PAGES, shadow_mem);
-- 
1.7.11.1.116.g8228a23

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Qemu-devel] [PATCH 4/5] machine: rename phandle_start to phandle-start
  2012-07-10 19:50 [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Luiz Capitulino
                   ` (2 preceding siblings ...)
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 3/5] machine: rename kvm_shadow_mem to kvm-shadow-mem Luiz Capitulino
@ 2012-07-10 19:50 ` Luiz Capitulino
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 5/5] machine: rename dt_compatible to dt-compatible Luiz Capitulino
  2012-07-11  7:08 ` [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Markus Armbruster
  5 siblings, 0 replies; 10+ messages in thread
From: Luiz Capitulino @ 2012-07-10 19:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: jan.kiszka, aliguori, afaerber

QOM conversion wants option names with dashes (instead of underscores),
this commit does the change for the phandle_start machine option.

The underscore is still supported through an option alias for backwards
compatibility.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 device_tree.c | 2 +-
 qemu-config.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/device_tree.c b/device_tree.c
index b366fdd..fe59768 100644
--- a/device_tree.c
+++ b/device_tree.c
@@ -213,7 +213,7 @@ uint32_t qemu_devtree_alloc_phandle(void *fdt)
         machine_opts = qemu_opts_find(qemu_find_opts("machine"), 0);
         if (machine_opts) {
             const char *phandle_start;
-            phandle_start = qemu_opt_get(machine_opts, "phandle_start");
+            phandle_start = qemu_opt_get(machine_opts, "phandle-start");
             if (phandle_start) {
                 phandle = strtoul(phandle_start, NULL, 0);
             }
diff --git a/qemu-config.c b/qemu-config.c
index 909fae9..d888b5b 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -590,7 +590,8 @@ static QemuOptsList qemu_machine_opts = {
             .type = QEMU_OPT_STRING,
             .help = "Dump current dtb to a file and quit",
         }, {
-            .name = "phandle_start",
+            .name = "phandle-start",
+            .alias= "phandle_start",
             .type = QEMU_OPT_STRING,
             .help = "The first phandle ID we may generate dynamically",
         }, {
-- 
1.7.11.1.116.g8228a23

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Qemu-devel] [PATCH 5/5] machine: rename dt_compatible to dt-compatible
  2012-07-10 19:50 [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Luiz Capitulino
                   ` (3 preceding siblings ...)
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 4/5] machine: rename phandle_start to phandle-start Luiz Capitulino
@ 2012-07-10 19:50 ` Luiz Capitulino
  2012-07-11  7:08 ` [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Markus Armbruster
  5 siblings, 0 replies; 10+ messages in thread
From: Luiz Capitulino @ 2012-07-10 19:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: jan.kiszka, aliguori, afaerber

QOM conversion wants option names with dashes (instead of underscores),
this commit does the change for the dt_compatible machine option.

The underscore is still supported through an option alias for backwards
compatibility.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 hw/ppce500_mpc8544ds.c | 2 +-
 qemu-config.c          | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index 8b9fd83..7b98011 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -148,7 +148,7 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
         const char *tmp;
         dumpdtb = qemu_opt_get(machine_opts, "dumpdtb");
         dtb_file = qemu_opt_get(machine_opts, "dtb");
-        tmp = qemu_opt_get(machine_opts, "dt_compatible");
+        tmp = qemu_opt_get(machine_opts, "dt-compatible");
         if (tmp) {
             compatible = tmp;
             compatible_len = strlen(compatible) + 1;
diff --git a/qemu-config.c b/qemu-config.c
index d888b5b..9dac3be 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -595,7 +595,8 @@ static QemuOptsList qemu_machine_opts = {
             .type = QEMU_OPT_STRING,
             .help = "The first phandle ID we may generate dynamically",
         }, {
-            .name = "dt_compatible",
+            .name = "dt-compatible",
+            .alias= "dt_compatible",
             .type = QEMU_OPT_STRING,
             .help = "Overrides the \"compatible\" property of the dt root node",
         },
-- 
1.7.11.1.116.g8228a23

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] [PATCH 1/5] qemu-option: add alias support
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 1/5] qemu-option: add alias support Luiz Capitulino
@ 2012-07-11  7:00   ` Markus Armbruster
  2012-07-11 12:51     ` Luiz Capitulino
  0 siblings, 1 reply; 10+ messages in thread
From: Markus Armbruster @ 2012-07-11  7:00 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: jan.kiszka, aliguori, qemu-devel, afaerber

Luiz Capitulino <lcapitulino@redhat.com> writes:

> It allows for specifying an alias for each option name, see next commits
> examples.
>
> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
> ---
>  qemu-option.c | 9 ++++++++-
>  qemu-option.h | 1 +
>  2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/qemu-option.c b/qemu-option.c
> index bb3886c..59a1f6e 100644
> --- a/qemu-option.c
> +++ b/qemu-option.c
> @@ -616,6 +616,7 @@ static void opt_set(QemuOpts *opts, const char *name, const char *value,
>                      bool prepend, Error **errp)
>  {
>      QemuOpt *opt;
> +    const char *optname;
>      const QemuOptDesc *desc = opts->list->desc;
>      Error *local_err = NULL;
>      int i;
> @@ -624,18 +625,24 @@ static void opt_set(QemuOpts *opts, const char *name, const char *value,
>          if (strcmp(desc[i].name, name) == 0) {
>              break;
>          }
> +        if (desc[i].alias && strcmp(desc[i].alias, name) == 0) {
> +            break;
> +        }
>      }
>      if (desc[i].name == NULL) {
>          if (i == 0) {
>              /* empty list -> allow any */;
> +            optname = name;
>          } else {
>              error_set(errp, QERR_INVALID_PARAMETER, name);
>              return;
>          }
> +    } else {
> +        optname = desc[i].name;
>      }
>  
>      opt = g_malloc0(sizeof(*opt));
> -    opt->name = g_strdup(name);
> +    opt->name = g_strdup(optname);
>      opt->opts = opts;
>      if (prepend) {
>          QTAILQ_INSERT_HEAD(&opts->head, opt, next);

What about qemu_opt_set_bool() and qemu_opts_validate()?  Don't they
need alias support as well?

By the way, I really dislike qemu_opt_set_bool() duplicating
qemu_opt_set().  Shame on commit f02b77c9.

> diff --git a/qemu-option.h b/qemu-option.h
> index 951dec3..7106d2f 100644
> --- a/qemu-option.h
> +++ b/qemu-option.h
> @@ -94,6 +94,7 @@ enum QemuOptType {
>  
>  typedef struct QemuOptDesc {
>      const char *name;
> +    const char *alias;
>      enum QemuOptType type;
>      const char *help;
>  } QemuOptDesc;

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes
  2012-07-10 19:50 [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Luiz Capitulino
                   ` (4 preceding siblings ...)
  2012-07-10 19:50 ` [Qemu-devel] [PATCH 5/5] machine: rename dt_compatible to dt-compatible Luiz Capitulino
@ 2012-07-11  7:08 ` Markus Armbruster
  2012-07-11  7:38   ` Markus Armbruster
  5 siblings, 1 reply; 10+ messages in thread
From: Markus Armbruster @ 2012-07-11  7:08 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: jan.kiszka, aliguori, qemu-devel, afaerber

Luiz Capitulino <lcapitulino@redhat.com> writes:

> Today, machine options use underscores to separate words (eg. kernel_irqchip),
> however upcoming QOM conversion wants to use dashes instead.

Command line users will appreciate consistent use of '-', too.

> This series converts all machine type options to use dashes. Command-line
> backwards compatibility is maintained by adding an alias for each changed
> option.

Looks good except for PATCH 1/5.

Many -machine options are not documented in -help.  Not your fault.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes
  2012-07-11  7:08 ` [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Markus Armbruster
@ 2012-07-11  7:38   ` Markus Armbruster
  0 siblings, 0 replies; 10+ messages in thread
From: Markus Armbruster @ 2012-07-11  7:38 UTC (permalink / raw)
  To: Luiz Capitulino; +Cc: jan.kiszka, aliguori, qemu-devel, afaerber

A quick git-grep for more instances of '_' in option parameter names
finds only vcard_emul_options().  Yet another ad hoc option argument
parser.  I'm not asking you to do anything about it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Qemu-devel] [PATCH 1/5] qemu-option: add alias support
  2012-07-11  7:00   ` Markus Armbruster
@ 2012-07-11 12:51     ` Luiz Capitulino
  0 siblings, 0 replies; 10+ messages in thread
From: Luiz Capitulino @ 2012-07-11 12:51 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: jan.kiszka, aliguori, qemu-devel, afaerber

On Wed, 11 Jul 2012 09:00:59 +0200
Markus Armbruster <armbru@redhat.com> wrote:

> Luiz Capitulino <lcapitulino@redhat.com> writes:
> 
> > It allows for specifying an alias for each option name, see next commits
> > examples.
> >
> > Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
> > ---
> >  qemu-option.c | 9 ++++++++-
> >  qemu-option.h | 1 +
> >  2 files changed, 9 insertions(+), 1 deletion(-)
> >
> > diff --git a/qemu-option.c b/qemu-option.c
> > index bb3886c..59a1f6e 100644
> > --- a/qemu-option.c
> > +++ b/qemu-option.c
> > @@ -616,6 +616,7 @@ static void opt_set(QemuOpts *opts, const char *name, const char *value,
> >                      bool prepend, Error **errp)
> >  {
> >      QemuOpt *opt;
> > +    const char *optname;
> >      const QemuOptDesc *desc = opts->list->desc;
> >      Error *local_err = NULL;
> >      int i;
> > @@ -624,18 +625,24 @@ static void opt_set(QemuOpts *opts, const char *name, const char *value,
> >          if (strcmp(desc[i].name, name) == 0) {
> >              break;
> >          }
> > +        if (desc[i].alias && strcmp(desc[i].alias, name) == 0) {
> > +            break;
> > +        }
> >      }
> >      if (desc[i].name == NULL) {
> >          if (i == 0) {
> >              /* empty list -> allow any */;
> > +            optname = name;
> >          } else {
> >              error_set(errp, QERR_INVALID_PARAMETER, name);
> >              return;
> >          }
> > +    } else {
> > +        optname = desc[i].name;
> >      }
> >  
> >      opt = g_malloc0(sizeof(*opt));
> > -    opt->name = g_strdup(name);
> > +    opt->name = g_strdup(optname);
> >      opt->opts = opts;
> >      if (prepend) {
> >          QTAILQ_INSERT_HEAD(&opts->head, opt, next);
> 
> What about qemu_opt_set_bool() and qemu_opts_validate()?  Don't they
> need alias support as well?

Oh, you're right, thanks for catching this.

> By the way, I really dislike qemu_opt_set_bool() duplicating
> qemu_opt_set().  Shame on commit f02b77c9.

Yeah, I'll fix the duplication.

> 
> > diff --git a/qemu-option.h b/qemu-option.h
> > index 951dec3..7106d2f 100644
> > --- a/qemu-option.h
> > +++ b/qemu-option.h
> > @@ -94,6 +94,7 @@ enum QemuOptType {
> >  
> >  typedef struct QemuOptDesc {
> >      const char *name;
> > +    const char *alias;
> >      enum QemuOptType type;
> >      const char *help;
> >  } QemuOptDesc;
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-07-11 12:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 19:50 [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Luiz Capitulino
2012-07-10 19:50 ` [Qemu-devel] [PATCH 1/5] qemu-option: add alias support Luiz Capitulino
2012-07-11  7:00   ` Markus Armbruster
2012-07-11 12:51     ` Luiz Capitulino
2012-07-10 19:50 ` [Qemu-devel] [PATCH 2/5] machine: rename kernel_irqchip to kernel-irqchip Luiz Capitulino
2012-07-10 19:50 ` [Qemu-devel] [PATCH 3/5] machine: rename kvm_shadow_mem to kvm-shadow-mem Luiz Capitulino
2012-07-10 19:50 ` [Qemu-devel] [PATCH 4/5] machine: rename phandle_start to phandle-start Luiz Capitulino
2012-07-10 19:50 ` [Qemu-devel] [PATCH 5/5] machine: rename dt_compatible to dt-compatible Luiz Capitulino
2012-07-11  7:08 ` [Qemu-devel] [PATCH 0/5]: rename machine options to use dashes Markus Armbruster
2012-07-11  7:38   ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.