From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEtrh-0001yl-06 for qemu-devel@nongnu.org; Mon, 20 Jun 2016 03:43:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEtrZ-0002wp-Ry for qemu-devel@nongnu.org; Mon, 20 Jun 2016 03:43:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEtrZ-0002wl-Mn for qemu-devel@nongnu.org; Mon, 20 Jun 2016 03:43:17 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (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 237CC63E04 for ; Mon, 20 Jun 2016 07:43:17 +0000 (UTC) From: Markus Armbruster References: <1466022773-8965-1-git-send-email-ehabkost@redhat.com> <1466022773-8965-2-git-send-email-ehabkost@redhat.com> Date: Mon, 20 Jun 2016 09:43:15 +0200 In-Reply-To: <1466022773-8965-2-git-send-email-ehabkost@redhat.com> (Eduardo Habkost's message of "Wed, 15 Jun 2016 17:32:44 -0300") Message-ID: <87h9cocnl8.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 01/10] qdev: Don't stop applying globals on first error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Marcel Apfelbaum , Paolo Bonzini , Igor Mammedov Eduardo Habkost writes: > qdev_prop_set_globals_for_type() stops applying global properties > on the first error. It is a leftover from when QEMU exited on any > error when applying global property. Now we print a warning about > the first error, bug ignore all other global properties after it. Might want to add "Messed up in commit 25f8dd9." > For example, the following command-line will not set CPUID level > to 3, but will warn only about "x86_64-cpu.vendor" being ignored. > > $ ./x86_64-softmmu/qemu-system-x86_64 \ > -global x86_64-cpu.vendor=x \ > -global x86_64-cpu.level=3 > qemu-system-x86_64: Warning: global x86_64-cpu.vendor=x ignored: Property '.vendor' doesn't take value 'x' > > Fix this by not returning from qdev_prop_set_globals_for_type() > on the first error. > > Cc: Markus Armbruster > Signed-off-by: Eduardo Habkost Reviewed-by: Markus Armbruster