From nobody Wed Nov 27 18:33:40 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1697966737; cv=none; d=zohomail.com; s=zohoarc; b=UJ7r/Y1Hz6Zik6m1EVD9qn5Cxa782CbutjrYskWiatjUAIB4ToD9SeYWN2kyUwQeLldexwp7UdSXUx9vJIneib3asmpG5IxG0eR1s7qyUlIMrlzVJbN04hE2CzzkUdtjG+WazxdZ8Gi1Wk16IXQT+UR7pEC5z5E9xFLicvGH0ho= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697966737; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Gq5a9cgklusamAnqr6u4RtpwEQcuiHF1hB7JetLkRXQ=; b=U0hLDr9ndYwev6hijGeeSKxj7YC8bCEmUlnFaL1YPQSTC8JQE6DsgVou6/LFYmhD9hdN2Rz2ZnT/TTfh5IZRLxsbYO/AXDRg+EcZdS3n/fdkZ6QstYhmUmdWDdI30pei5wTeUa71yca4GxG21qqvqBXo9nRkxANO4tpA4YAUl7E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1697966737099884.4282906258663; Sun, 22 Oct 2023 02:25:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quUgX-0006OX-JA; Sun, 22 Oct 2023 05:23:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quUgV-00065Q-Dt for qemu-devel@nongnu.org; Sun, 22 Oct 2023 05:23:47 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quUgS-0000QQ-8L for qemu-devel@nongnu.org; Sun, 22 Oct 2023 05:23:46 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-359-5mZ_5GAQMh6_clwyHGV2Iw-1; Sun, 22 Oct 2023 05:23:42 -0400 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4084d08235fso14307795e9.3 for ; Sun, 22 Oct 2023 02:23:42 -0700 (PDT) Received: from redhat.com ([2.52.1.53]) by smtp.gmail.com with ESMTPSA id r4-20020adff704000000b0032d88e370basm5295065wrp.34.2023.10.22.02.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 02:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697966623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Gq5a9cgklusamAnqr6u4RtpwEQcuiHF1hB7JetLkRXQ=; b=exY49Mqo8X3kuozCfCdDhumLY/5SDkUyX+aOgFaEG1S+6EekaMYY5SXeDQLiqvt/agm2t0 aPTA+FIfB0rXEf3xWtCLYPdUV9xpHRGDHPILcJjQZ7yxTyX5xiInmrhoTXQnQVIQ0IWVfZ NPGeTW5289RBOFh6RqbD7I0kRq9HR2k= X-MC-Unique: 5mZ_5GAQMh6_clwyHGV2Iw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697966620; x=1698571420; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Gq5a9cgklusamAnqr6u4RtpwEQcuiHF1hB7JetLkRXQ=; b=tjDN+gcM+HkpzsW4k7Xw3s6wo1yV7XPI0+K8Hd9yxb2q//l50sWdOjgPayrsRPOibf orAm61V4v3Z8ErAfKsPVNJmI87vWRcoEwPDs2lIPk9CIOX0UM0xj6GCHh8vh77gDqv1s VUFasc2j4QGaBpKJC+8CzCF3p5Zx1eeqcxZrmC1z/TVSJMkjVDGxHHlreP2bIzfIvdMD 1/CVP7RfV7mzVBfzRmFDwnWpGh8M6Bp9qfHS9RQEUAGB73cpo3DoghaoPcMnICDjgzB2 9lVmjr/qudGXXGdlY+l03Bdxc0yNnQlW9y5hGBkB72HO/YisdbCTlpYIi6ewiIQdrmyg zEig== X-Gm-Message-State: AOJu0YzRcYsSe8rO64mJy3Uks1KqWCFnmonNuAH52LdOAiCWqpWAoYJ/ Porr+pjW+GV/c5ASeOiwXvQk6fbyEEBRIxNIuaptBRStrvJRx8show8gyqM4XXJZ+Ahh+LuqdHH GesUZKtsjIVto1UDxpi0PxRjIrqrOXWwSLlISAoPN8PczSjIWKWs5s8ItV5BBXpPNsF5O X-Received: by 2002:a05:6000:152:b0:31f:8999:c409 with SMTP id r18-20020a056000015200b0031f8999c409mr4621955wrx.66.1697966620618; Sun, 22 Oct 2023 02:23:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEQZL0dmF1bSYTh4eFksYKlo1FBpyH9TrDLkKPp8SEf2JyAYZl2WRcsXj2GavRL9HrN/fAFIQ== X-Received: by 2002:a05:6000:152:b0:31f:8999:c409 with SMTP id r18-20020a056000015200b0031f8999c409mr4621940wrx.66.1697966620294; Sun, 22 Oct 2023 02:23:40 -0700 (PDT) Date: Sun, 22 Oct 2023 05:23:35 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Bernhard Beschow , Paolo Bonzini , Richard Henderson , Eduardo Habkost , Marcel Apfelbaum Subject: [PULL v3 23/62] hw/i386/pc_piix: Allow for setting properties before realizing PIIX3 south bridge Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697966738919100007 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bernhard Beschow The next patches will need to take advantage of it. Signed-off-by: Bernhard Beschow Reviewed-by: Peter Maydell Reviewed-by: Michael S. Tsirkin Message-Id: <20231007123843.127151-3-shentey@gmail.com> Signed-off-by: Michael S. Tsirkin --- hw/i386/pc_piix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index e36a3262b2..6d2f5509e6 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -264,7 +264,8 @@ static void pc_init1(MachineState *machine, PIIX3State *piix3; PCIDevice *pci_dev; =20 - pci_dev =3D pci_create_simple_multifunction(pci_bus, -1, TYPE_PIIX= 3_DEVICE); + pci_dev =3D pci_new_multifunction(-1, TYPE_PIIX3_DEVICE); + pci_realize_and_unref(pci_dev, pci_bus, &error_fatal); =20 if (xen_enabled()) { pci_device_set_intx_routing_notifier( --=20 MST