Skip to content

qdev: Validate class name for -device <class>, help

Eduardo Habkost qemu-devel 1 version Applied

Status from this message: Thanks, applied to qom-next as is:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3qdev: Create qdev_get_device_class() functionqdev-monitor.c+42 -282 replies
2/3qdev: Move error printing to the end of qdev_device_help()qdev-monitor.c+6 -30 replies
3/3qdev: Use qdev_device_add_get_class() for -device <type>, helpqdev-monitor.c+3 -64 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] qdev: Validate class name for -device <class>, help

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 <[email protected]>
Cc Gonglei <[email protected]>
Cc Igor Mammedov <[email protected]>
Cc Andreas Färber <[email protected]>
Cc Paolo Bonzini <[email protected]>

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(-)
Signature · 1 line
1.9.3