All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] simplify usb enabling logic and fix a Qemu crash
@ 2015-01-06 13:29 Marcel Apfelbaum
  2015-01-06 13:29 ` [Qemu-devel] [PATCH 1/6] hw/ppc: modified the condition for usb controllers to be created for some ppc machines Marcel Apfelbaum
                   ` (8 more replies)
  0 siblings, 9 replies; 25+ messages in thread
From: Marcel Apfelbaum @ 2015-01-06 13:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: peter.maydell, mst, lersek, agraf, stefanha, pbonzini, afaerber, rth

Patch e79d5a6 ("machine: remove qemu_machine_opts global list") removed option
descriptions from the -machine QemuOptsList to avoid repeating MachineState's QOM properties.

This resulted in a Qemu crash:
$ qemu-system-x86_64 -usb
qemu-system-x86_64: util/qemu-option.c:387: qemu_opt_get_bool_helper:
Assertion `opt->desc && opt->desc->type == QEMU_OPT_BOOL' failed.
Aborted (core dumped)

Fixed it by simplifying usb_enabled usage:
 - removed the usb_enabled argument
 - call directly to machine's QOM property.
 - expose defaults_enabled to calling sites

As part of this series the semantics for some ppc machines to
create the default usb controller were changed, but I still think
is correct, please let me know if you see a problem there.

Based on the comments I will receive, I will continue to fix the options
properties in the same way.

Marcel Apfelbaum (6):
  hw/ppc: modified the condition for usb controllers to be created for
    some ppc machines
  hw/machine: added machine_usb wrapper
  hw/usb: simplified usb_enabled
  hw/ppc/mac_newworld: QOMified mac99 machines
  hw/ppc/spapr: simplify usb controller creation logic
  hw/ppc/mac_newworld: simplify usb controller creation logic

 hw/arm/nseries.c        |  2 +-
 hw/arm/pxa2xx.c         |  4 ++--
 hw/arm/realview.c       |  2 +-
 hw/arm/versatilepb.c    |  2 +-
 hw/core/machine.c       |  5 +++++
 hw/i386/pc_piix.c       |  2 +-
 hw/i386/pc_q35.c        |  2 +-
 hw/ppc/mac_newworld.c   | 32 +++++++++++++++++++++-----------
 hw/ppc/mac_oldworld.c   |  2 +-
 hw/ppc/prep.c           |  2 +-
 hw/ppc/spapr.c          |  3 ++-
 include/hw/boards.h     |  2 ++
 include/sysemu/sysemu.h |  3 ++-
 vl.c                    | 16 ++++++++++------
 14 files changed, 51 insertions(+), 28 deletions(-)

-- 
2.1.0

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

end of thread, other threads:[~2015-01-08 16:36 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-06 13:29 [Qemu-devel] [PATCH 0/6] simplify usb enabling logic and fix a Qemu crash Marcel Apfelbaum
2015-01-06 13:29 ` [Qemu-devel] [PATCH 1/6] hw/ppc: modified the condition for usb controllers to be created for some ppc machines Marcel Apfelbaum
2015-01-06 21:46   ` Alexander Graf
2015-01-06 13:29 ` [Qemu-devel] [PATCH 2/6] hw/machine: added machine_usb wrapper Marcel Apfelbaum
2015-01-06 13:29 ` [Qemu-devel] [PATCH 3/6] hw/usb: simplified usb_enabled Marcel Apfelbaum
2015-01-06 13:29 ` [Qemu-devel] [PATCH 4/6] hw/ppc/mac_newworld: QOMified mac99 machines Marcel Apfelbaum
2015-01-06 13:29 ` [Qemu-devel] [PATCH 5/6] hw/ppc/spapr: simplify usb controller creation logic Marcel Apfelbaum
2015-01-06 20:45   ` Paolo Bonzini
2015-01-07 11:03     ` Marcel Apfelbaum
2015-01-07 11:07       ` Paolo Bonzini
2015-01-07 11:15         ` Alexander Graf
2015-01-07 11:22           ` Paolo Bonzini
2015-01-07 11:27             ` Alexander Graf
2015-01-07 11:32               ` Paolo Bonzini
2015-01-07 11:37                 ` Alexander Graf
2015-01-07 14:57                   ` Marcel Apfelbaum
2015-01-07 11:50           ` Marcel Apfelbaum
2015-01-06 13:29 ` [Qemu-devel] [PATCH 6/6] hw/ppc/mac_newworld: " Marcel Apfelbaum
2015-01-06 19:48 ` [Qemu-devel] [PATCH 0/6] simplify usb enabling logic and fix a Qemu crash Paolo Bonzini
2015-01-06 20:41   ` Paolo Bonzini
2015-01-06 21:54     ` Alexander Graf
2015-01-07  5:25       ` Paolo Bonzini
2015-01-07 13:15 ` Stefan Hajnoczi
2015-01-08 13:27 ` Peter Maydell
2015-01-08 16:35   ` Paolo Bonzini

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.