Received: from eggs.gnu.org ([2001:4830:134:3::10]:49482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkb2W-0003F3-Tp for qemu-devel@nongnu.org; Sat, 01 Nov 2014 11:56:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xkb2S-0000cI-Ik for qemu-devel@nongnu.org; Sat, 01 Nov 2014 11:56:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xkb2S-0000c1-BH for qemu-devel@nongnu.org; Sat, 01 Nov 2014 11:56:28 -0400 From: Eduardo Habkost Date: Sat, 1 Nov 2014 13:56:08 -0200 Message-Id: <1414857371-12294-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/3] qdev: Validate class name for -device , help List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , Gonglei , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Stefan Hajnoczi , Paolo Bonzini 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 =3D=3D 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 Cc: Gonglei Cc: Igor Mammedov Cc: Andreas F=C3=A4rber Cc: Paolo Bonzini 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 ,help qdev-monitor.c | 88 ++++++++++++++++++++++++++++++++++------------------= ------ 1 file changed, 51 insertions(+), 37 deletions(-) --=20 1.9.3