This fixes the following crashes:

   $ qemu-system-x86_64 -device x86_64-cpu,help
   **
   ERROR:qom/object.c:336:object_initialize_with_type: assertion failed: 
(type->abstract == false)
   Aborted (core dumped)
   $ qemu-system-x86_64 -device host-x86_64-cpu,help
   qemu-system-x86_64: /home/ehabkost/rh/proj/virt/qemu/target-i386/cpu.c:1329: 
host_x86_cpu_initfn: Assertion `(kvm_allowed)' failed.
   Aborted (core dumped)

Cc: Stefan Hajnoczi <stefa...@redhat.com>
Cc: Gonglei <arei.gong...@huawei.com>
Cc: Igor Mammedov <imamm...@redhat.com>
Cc: Andreas Färber <afaer...@suse.de>
Cc: Paolo Bonzini <pbonz...@redhat.com>

Eduardo Habkost (3):
  qdev: Create qdev_get_device_class() function
  qdev: Move error printing to the end of qdev_device_help()
  qdev: Use qdev_device_add_get_class() for -device <type>,help

 qdev-monitor.c | 88 ++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 51 insertions(+), 37 deletions(-)

-- 
1.9.3


Reply via email to