From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF1WB-0006gV-8V for qemu-devel@nongnu.org; Mon, 20 Jun 2016 11:53:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bF1W7-0005Dm-7M for qemu-devel@nongnu.org; Mon, 20 Jun 2016 11:53:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF1W7-0005Db-1b for qemu-devel@nongnu.org; Mon, 20 Jun 2016 11:53:39 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5B68D42E5A6 for ; Mon, 20 Jun 2016 15:53:38 +0000 (UTC) From: Eduardo Habkost Date: Mon, 20 Jun 2016 12:52:53 -0300 Message-Id: <1466437983-27133-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v2 00/10] globals: Clean up validation and error checking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Markus Armbruster Cc: Paolo Bonzini , Marcel Apfelbaum , Igor Mammedov This series includes multiple changes to the way errors are handled by the global property system. Git tree: https://github.com/ehabkost/qemu-hacks.git work/global-error-handling Changes v1 -> v2: * Fix test-qdev-global-props unit test * Remove subprocess code and "nouser" test case * Reported-by: Igor Mammedov * Reword doc comments for GlobalProperty::errp * Suggested-by: Markus Armbruster * Squashed "Use error_prepend() for errors applying globals" and "qdev: GlobalProperty.errp field" * Suggested-by: Markus Armbruster * Simplify object_class_dynamic_cast(oc, TYPE_DEVICE) checks * Suggested-by: Markus Armbruster * New patch: "qdev: Remove qdev_prop_register_global_list()" Eduardo Habkost (10): qdev: Don't stop applying globals on first error qdev: Eliminate qemu_add_globals() function vl: Reject invalid class names on -global qdev: GlobalProperty.errp field machine: Add machine_register_compat_props() function vl: Set errp to &error_abort on machine compat_props qdev: Eliminate "global not used" warning qdev: Eliminate GlobalProperty 'used' and 'user_provided' fields qdev: Remove qdev_prop_register_global_list() machine: Skip global registration for non-existing classes hw/core/machine.c | 26 +++++++++ hw/core/qdev-properties-system.c | 21 +------ hw/core/qdev-properties.c | 55 +++---------------- include/hw/boards.h | 1 + include/hw/qdev-core.h | 9 ++- include/hw/qdev-properties.h | 2 - include/qemu/config-file.h | 1 - tests/test-qdev-global-props.c | 115 ++++----------------------------------- vl.c | 37 ++++++++++--- 9 files changed, 80 insertions(+), 187 deletions(-) -- 2.5.5