Received: from eggs.gnu.org ([208.118.235.92]:51479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1KXI-0005Xc-Ix for qemu-devel@nongnu.org; Fri, 01 Feb 2013 12:36:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1KXF-0006FF-Kr for qemu-devel@nongnu.org; Fri, 01 Feb 2013 12:36:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1KXF-0006F1-DI for qemu-devel@nongnu.org; Fri, 01 Feb 2013 12:36:21 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r11HaJ3i027185 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Feb 2013 12:36:20 -0500 From: Laszlo Ersek Date: Fri, 1 Feb 2013 18:38:12 +0100 Message-Id: <1359740299-27968-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH 0/7] propagate Errors to do_device_add() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: lcapitulino@redhat.com, qemu-devel@nongnu.org This series is the first in converting do_device_add() to qapi. The following call chains have been modified: do_device_add -> qemu_find_opts -> error_report do_device_add -> qdev_device_add -> qerror_report do_device_add -> qdev_device_add -> qbus_find -> qbus_find_recursive -> qerror_report do_device_add -> qdev_device_add -> qbus_find -> qerror_report do_device_add -> qdev_device_add -> set_property -> qdev_prop_parse -> qerror_report_err The following call chains - all depend on !monitor_cur_is_qmp() at some level (marked with *), - all print informative messages (not errors per se), - are the next step in the conversion -- ultimately they belong in HMP: do_device_add -> qemu_opts_from_qdict -> qemu_opts_create -> error_printf_unless_qmp* do_device_add -> qemu_opts_from_qdict -> qemu_opts_from_qdict_1 -> qemu_opt_set_err -> opt_set -> qemu_opt_parse -> parse_option_size -> error_printf_unless_qmp* do_device_add* -> qdev_device_help -> qdev_print_devinfo -> error_printf do_device_add* -> qdev_device_help -> error_printf do_device_add -> qdev_device_add -> qbus_find* -> qbus_list_dev -> error_printf do_device_add -> qdev_device_add -> qbus_find* -> qbus_list_bus -> error_printf Laszlo Ersek (7): remove some trailing whitespace do_device_add(): look up "device" opts list with qemu_find_opts_err() qdev_prop_parse(): report errors via Error qbus_find_recursive(): reorganize qbus_find_recursive(): terminate search by name in case of fatal error qbus_find(): report errors via Error qdev_device_add(): report errors with Error hw/qdev-monitor.h | 3 +- hw/qdev-properties.h | 4 +- hw/qdev-monitor.c | 124 ++++++++++++++++++++++++++++++-------------------- hw/qdev-properties.c | 12 +++-- vl.c | 17 ++++-- 5 files changed, 99 insertions(+), 61 deletions(-)