From nobody Mon Feb 9 04:46:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1489048910784785.7360350594901; Thu, 9 Mar 2017 00:41:50 -0800 (PST) Received: from localhost ([::1]:32771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cltdt-00087v-E0 for importer@patchew.org; Thu, 09 Mar 2017 03:41:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cltaw-0006SD-ED for qemu-devel@nongnu.org; Thu, 09 Mar 2017 03:38:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cltar-00011p-GD for qemu-devel@nongnu.org; Thu, 09 Mar 2017 03:38:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56224) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cltar-00011N-A9 for qemu-devel@nongnu.org; Thu, 09 Mar 2017 03:38:41 -0500 Received: from smtp.corp.redhat.com (int-mx16.intmail.prod.int.phx2.redhat.com [10.5.11.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 44971C04BD2B for ; Thu, 9 Mar 2017 08:38:41 +0000 (UTC) Received: from nilsson.home.kraxel.org (ovpn-116-80.ams2.redhat.com [10.36.116.80]) by smtp.corp.redhat.com (Postfix) with ESMTP id 800FF2D654; Thu, 9 Mar 2017 08:38:40 +0000 (UTC) Received: by nilsson.home.kraxel.org (Postfix, from userid 500) id 1DBDD805BC; Thu, 9 Mar 2017 09:38:35 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Thu, 9 Mar 2017 09:38:29 +0100 Message-Id: <1489048710-22084-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1489048710-22084-1-git-send-email-kraxel@redhat.com> References: <1489048710-22084-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.74 on 10.5.11.28 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 09 Mar 2017 08:38:41 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 3/4] stdvga: move common properties to common base class 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: Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- hw/display/vga-pci.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c index ac9a764..8500362 100644 --- a/hw/display/vga-pci.c +++ b/hw/display/vga-pci.c @@ -306,15 +306,12 @@ static void pci_secondary_vga_reset(DeviceState *dev) vga_common_reset(&d->vga); } =20 -static Property vga_pci_properties[] =3D { - DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16), +static Property vga_pci_primary_properties[] =3D { DEFINE_PROP_BIT("mmio", PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_MMIO, = true), - DEFINE_PROP_BIT("qemu-extended-regs", - PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_QEXT, true), DEFINE_PROP_END_OF_LIST(), }; =20 -static Property secondary_pci_properties[] =3D { +static Property vga_pci_common_properties[] =3D { DEFINE_PROP_UINT32("vgamem_mb", PCIVGAState, vga.vram_size_mb, 16), DEFINE_PROP_BIT("qemu-extended-regs", PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_QEXT, true), @@ -329,6 +326,7 @@ static void vga_pci_class_init(ObjectClass *klass, void= *data) k->vendor_id =3D PCI_VENDOR_ID_QEMU; k->device_id =3D PCI_DEVICE_ID_QEMU_VGA; dc->vmsd =3D &vmstate_vga_pci; + dc->props =3D vga_pci_common_properties; set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); } =20 @@ -348,7 +346,7 @@ static void vga_class_init(ObjectClass *klass, void *da= ta) k->realize =3D pci_std_vga_realize; k->romfile =3D "vgabios-stdvga.bin"; k->class_id =3D PCI_CLASS_DISPLAY_VGA; - dc->props =3D vga_pci_properties; + dc->props =3D vga_pci_primary_properties; dc->hotpluggable =3D false; } =20 @@ -359,7 +357,6 @@ static void secondary_class_init(ObjectClass *klass, vo= id *data) =20 k->realize =3D pci_secondary_vga_realize; k->class_id =3D PCI_CLASS_DISPLAY_OTHER; - dc->props =3D secondary_pci_properties; dc->reset =3D pci_secondary_vga_reset; } =20 --=20 1.8.3.1