From patchwork Mon May 26 12:40:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Apfelbaum X-Patchwork-Id: 352505 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 581781400A3 for ; Mon, 26 May 2014 22:42:48 +1000 (EST) Received: from localhost ([::1]:56575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WouEn-0003w8-W4 for incoming@patchwork.ozlabs.org; Mon, 26 May 2014 08:42:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WouDa-00017O-F2 for qemu-devel@nongnu.org; Mon, 26 May 2014 08:41:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WouDR-0003nR-FW for qemu-devel@nongnu.org; Mon, 26 May 2014 08:41:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WouDR-0003nL-7s for qemu-devel@nongnu.org; Mon, 26 May 2014 08:41:21 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4QCfHEl011444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 May 2014 08:41:18 -0400 Received: from localhost.localdomain.com (vpn1-4-42.ams2.redhat.com [10.36.4.42]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4QCeiCn003889; Mon, 26 May 2014 08:41:11 -0400 From: Marcel Apfelbaum To: qemu-devel@nongnu.org Date: Mon, 26 May 2014 15:40:57 +0300 Message-Id: <1401108058-27348-4-git-send-email-marcel.a@redhat.com> In-Reply-To: <1401108058-27348-1-git-send-email-marcel.a@redhat.com> References: <1401108058-27348-1-git-send-email-marcel.a@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: mst@redhat.com, armbru@redhat.com, marcel.a@redhat.com, agraf@suse.de, mdroth@linux.vnet.ibm.com, aliguori@amazon.com, sw@weilnetz.de, lcapitulino@redhat.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH V2 3/4] vl.c: do not set 'type' property in obj_set_property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Filter out also 'type' property when setting object's properties Reviewed-by: Paolo Bonzini Signed-off-by: Marcel Apfelbaum --- vl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 2de90fb..2153b9e 100644 --- a/vl.c +++ b/vl.c @@ -2889,7 +2889,8 @@ static int object_set_property(const char *name, const char *value, void *opaque StringInputVisitor *siv; Error *local_err = NULL; - if (strcmp(name, "qom-type") == 0 || strcmp(name, "id") == 0) { + if (strcmp(name, "qom-type") == 0 || strcmp(name, "id") == 0 || + strcmp(name, "type") == 0) { return 0; }