From patchwork Mon Jan 7 19:30:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 1021549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43YQVV2tLNz9sCX for ; Tue, 8 Jan 2019 06:31:14 +1100 (AEDT) Received: from localhost ([127.0.0.1]:59009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggacC-0008F1-AE for incoming@patchwork.ozlabs.org; Mon, 07 Jan 2019 14:31:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggabe-0008EF-Pp for qemu-devel@nongnu.org; Mon, 07 Jan 2019 14:30:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggabc-0000Et-PE for qemu-devel@nongnu.org; Mon, 07 Jan 2019 14:30:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44818) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ggabb-0008D3-O5; Mon, 07 Jan 2019 14:30:36 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DF48BC71B8; Mon, 7 Jan 2019 19:30:21 +0000 (UTC) Received: from localhost (ovpn-116-79.gru2.redhat.com [10.97.116.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4996A5D9CA; Mon, 7 Jan 2019 19:30:21 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Mon, 7 Jan 2019 17:30:17 -0200 Message-Id: <20190107193020.21744-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 07 Jan 2019 19:30:22 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 0/3] machine: Make compat_props arrays shorter and more readable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, Stefano Stabellini , Eduardo Habkost , David Hildenbrand , Cornelia Huck , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, "Michael S. Tsirkin" , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Anthony Perard , Paolo Bonzini , David Gibson , xen-devel@lists.xenproject.org, Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Current declarations of compat_props arrays are very verbose, with each entry taking 4 lines of code. By omitting the field designators, we can make each array entry fit a single line of code and be more readable. Eduardo Habkost (3): spapr: Eliminate SPAPR_PCI_2_7_MMIO_WIN_SIZE macro machine: Eliminate unnecessary stringify() usage machine: Use shorter format for GlobalProperty arrays include/hw/i386/pc.h | 18 +- include/hw/pci-host/spapr.h | 1 - hw/core/machine.c | 338 ++++------------- hw/i386/pc.c | 720 +++++++----------------------------- hw/i386/pc_piix.c | 192 ++-------- hw/ppc/spapr.c | 72 +--- hw/s390x/s390-virtio-ccw.c | 75 +--- hw/xen/xen-common.c | 18 +- 8 files changed, 265 insertions(+), 1169 deletions(-)