[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 06/24] qdev: fix -device foo,?
From: |
Jiri Denemark |
Subject: |
Re: [Qemu-devel] [PATCH v2 06/24] qdev: fix -device foo,? |
Date: |
Fri, 27 Apr 2012 11:37:30 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Apr 11, 2012 at 23:30:24 +0200, Paolo Bonzini wrote:
> Since most property types do not have a parse property now, this was
> broken. Fix it by looking at the setter instead.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> hw/qdev-monitor.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/qdev-monitor.c b/hw/qdev-monitor.c
> index 4783366..0acfc82 100644
> --- a/hw/qdev-monitor.c
> +++ b/hw/qdev-monitor.c
> @@ -157,7 +157,7 @@ int qdev_device_help(QemuOpts *opts)
> * for removal. This conditional should be removed along with
> * it.
> */
> - if (!prop->info->parse) {
> + if (!prop->info->set) {
> continue; /* no way to set it, don't show */
> }
> error_printf("%s.%s=%s\n", driver, prop->name,
> @@ -165,7 +165,7 @@ int qdev_device_help(QemuOpts *opts)
> }
> if (info->bus_info) {
> for (prop = info->bus_info->props; prop && prop->name; prop++) {
> - if (!prop->info->parse) {
> + if (!prop->info->set) {
> continue; /* no way to set it, don't show */
> }
> error_printf("%s.%s=%s\n", driver, prop->name,
Oops, this patch (or an equivalent fix) doesn't seem to have been ever
applied, which makes libvirt quite unhappy with current qemu. Bootindex cannot
be used through libvirt, to name just one issue resulting from broken
-device foo,?
Jirka
[Qemu-devel] [PATCH v2 08/24] qdev: move bus properties to a separate global, Paolo Bonzini, 2012/04/11
[Qemu-devel] [PATCH v2 07/24] qdev: use object_property_print in info qtree, Paolo Bonzini, 2012/04/11
[Qemu-devel] [PATCH v2 09/24] qdev: do not propagate properties to subclasses, Paolo Bonzini, 2012/04/11
[Qemu-devel] [PATCH v2 11/24] qdev: clean up global properties, Paolo Bonzini, 2012/04/11
[Qemu-devel] [PATCH v2 10/24] qdev: move bus properties to abstract superclasses, Paolo Bonzini, 2012/04/11
[Qemu-devel] [PATCH v2 12/24] qdev: remove qdev_prop_set_defaults, Paolo Bonzini, 2012/04/11
[Qemu-devel] [PATCH v2 13/24] qapi: add Visitor interfaces for uint*_t and int*_t, Paolo Bonzini, 2012/04/11
[Qemu-devel] [PATCH v2 14/24] qdev: use int32_t container for devfn property, Paolo Bonzini, 2012/04/11