From nobody Wed Nov 27 19:39:45 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=1697645631; cv=none; d=zohomail.com; s=zohoarc; b=hUBelKmu1zTT4RI7yVlnyBr3keoOitDKoBKdbQ1DWsiyU2ltuVZD+lYVeheOWr/WMvt7K3j/lk6JYTh0ITVP4nxmQXmlyXpaCQ5IO2wJ1GNGdEm7J2Tw8xyuMYWMDFqeO61oXOUZMm68dbt1M4+rcVoAI43eU17EYyb912ZdSyg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697645631; 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=TZrRnkzyePuxccoGTU1SrzrW0cHYAIZ0715lajt307wexyaINlPHNCJeWexUKd9dtytRuNdXd1j0uNxFHvzHJtLLoxID0/VvfPF2AXthSfvoJKQWkSupswafPgXGWWgmuXMAA4VVItQqPiemABJWWvvSqt4YaV7px/6PMmC8xzI= 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 1697645631330435.8052620547313; Wed, 18 Oct 2023 09:13:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qt8vg-0007pk-Ht; Wed, 18 Oct 2023 11:57:54 -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 1qt8ug-0004KX-8f for qemu-devel@nongnu.org; Wed, 18 Oct 2023 11:56:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qt8ue-00077c-5J for qemu-devel@nongnu.org; Wed, 18 Oct 2023 11:56:49 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-584-5p_aU2uYPd25nygGLH7BZg-1; Wed, 18 Oct 2023 11:56:46 -0400 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4077e9112b4so25265795e9.2 for ; Wed, 18 Oct 2023 08:56:46 -0700 (PDT) Received: from redhat.com ([2a02:14f:1f2:2037:f34:d61b:7da0:a7be]) by smtp.gmail.com with ESMTPSA id m13-20020a7bca4d000000b00402ff8d6086sm1990012wml.18.2023.10.18.08.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697644607; 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=Ku+iGh7yFukVWYrOyS0kJ6BpHjYggFbcEEWCI4WR/IUlWd5pKYkUDfkzedol78oeuD8H/O Ctl4auLxhzwB97XlG/7/KHnrPWzY56hIrhwI0p8lx0Va+Dq0PvbZjkwINaq34h/timx2m4 Jawm48dY5gpSwtfIZsKhNOg+0VO5JVw= X-MC-Unique: 5p_aU2uYPd25nygGLH7BZg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697644604; x=1698249404; 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=hAatImKDBW8alAcXOH/E1kyBNAZt51VK5dEN8boeMzDe5B6EmVzrZZ4AcviQ4TY/74 Lb/bAjRs/tV2mS5bMgiT2tcDKyDWmRLyxcBKFptJFZ7HfLht5nMWd8DWFrOoAR166wz/ YOeXgljXHIsjtaI9e5t+hNu8o6tCopsoEafSDf5GUZo2xW+bYEFrJHqTfesjrR0ChDWd ThDJX4Pa6DVBBuX6y4Sy9IF14b4Mcy7gLSkTvHQMc9PtmOhRsXjitFq30Yw6TDUgy0jI ToipzwVpxN55YGYMv6EpqVFuiMU56Ms3ba8fUDJjU8oW+tvDD5OK/VL0vJSQLDFQHPPb ah+g== X-Gm-Message-State: AOJu0Yy1sOVef+QRpMKK8tb6s/6SmhvWeCRz6EBLyvsQJxeuX4nNEKKW m5QInzvDcHdjkjOudGfc5f5Ju5ODPa8gW4JUI/W/TsX1PaHYLGsvbWWo1iC+NI4ck/YzB5RAWv6 Td5YHWgzAJyI923b7r7295faW29jfRWworwvGGz6LrlWTe0iKWFAPl6lLX3tXN1ewBby8WDU= X-Received: by 2002:a05:600c:468e:b0:405:3d04:5f52 with SMTP id p14-20020a05600c468e00b004053d045f52mr4279735wmo.24.1697644604607; Wed, 18 Oct 2023 08:56:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEznV9EVqIusTp62/1f18QBj8l2IikeCzaV1LA+nTS/NXjgogVee9IRBftVMpfsqBGb8WZzPA== X-Received: by 2002:a05:600c:468e:b0:405:3d04:5f52 with SMTP id p14-20020a05600c468e00b004053d045f52mr4279718wmo.24.1697644604140; Wed, 18 Oct 2023 08:56:44 -0700 (PDT) Date: Wed, 18 Oct 2023 11:56:39 -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 44/83] 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.133.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_H3=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: 1697645632921100015 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