From nobody Wed Nov 27 18:28:19 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=1697967041; cv=none; d=zohomail.com; s=zohoarc; b=ZWcMhHcNsOjJTpiW47WadLqZSc+vYvzjduDawCC4IMNOuSwbElQ1CQDtdQGJjtPqdEwqhYRWlixbQYsl5WLpaO5k4tY9D626XN2r5yPlNkrKDQZfGnORYT9drlesZWWzgJC2jQtSM0lIfeM1/aiuAgO05HgR4eyhqNe8A/9hLqQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697967041; 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=x3My//pc/qVW2ftl9aWSgQDTy/uh8IXpNIimgHcVE8A=; b=dEi5ueCc9c+BNl2Ju3/h+fMtHCjZPoddvUuD0/q8yy2VIPqDvv2r0v1HQ1cFWsMV2GuUgPKhgAUEM3chgsa97xNqSI707pzfFdEs/Kvf3hQAef7i9P0za8iZVLOgV6ySC7bLbDCSAnTB2FoJwZXYIJn0VfZDk1x1a0uuPUY8aOQ= 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 1697967041449913.8786113749488; Sun, 22 Oct 2023 02:30:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quUiU-0007Jx-Om; Sun, 22 Oct 2023 05:25:50 -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 1quUiT-0007Fr-5w for qemu-devel@nongnu.org; Sun, 22 Oct 2023 05:25:49 -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 1quUiR-0000tk-MH for qemu-devel@nongnu.org; Sun, 22 Oct 2023 05:25:48 -0400 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-252-BF8NzkI2NBWi__Mh_ZGjMw-1; Sun, 22 Oct 2023 05:25:29 -0400 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-32d931872cbso1110338f8f.0 for ; Sun, 22 Oct 2023 02:25:29 -0700 (PDT) Received: from redhat.com ([2.52.1.53]) by smtp.gmail.com with ESMTPSA id e16-20020adfe7d0000000b0032db8f7f378sm5287514wrn.71.2023.10.22.02.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 02:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697966747; 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=x3My//pc/qVW2ftl9aWSgQDTy/uh8IXpNIimgHcVE8A=; b=AdgohZ86CmvUOuNp81hqTiuBHLqhDKGQntFIDBozWsbBxRMh9C/8L3RECIcToNrz/CFsG1 mUxsI3fhJy0qtLxdlyVn4wTKjQeMDEks5+X3YtrkdsJj9yHQbYBZyU0cbIU4Dd52JhtwTF i1mm+JJkGmQQR4i2qlIE2DaLRBM6LzE= X-MC-Unique: BF8NzkI2NBWi__Mh_ZGjMw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697966728; x=1698571528; 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=x3My//pc/qVW2ftl9aWSgQDTy/uh8IXpNIimgHcVE8A=; b=Pv2Tam/v1rTD3rrY1g7rwuu6MBH16qf2GEYX34GYVhJrORNhp9yN0jtmrFEgx1oAcy nUs3iJvlMUjXKCTu8eRThcbsUD7Z7zYjaG+F8hnhpu65DldyTp91S1oCzuU6u7YdgA5I DnPq+oI4AWIWyjUOYRXrpzbb7UmkL8h5ZONQ6IWszJ9LfhtBf8NhV3MRHDe/CJ7ZYGeU z34KpxZ/LgJNNf7KQ2kRXdu5/QPxbsqSBGAREw9ir3evib5tRN+77ybJKUkzVj8O4meB SIYFnI2WGvJ0nnqMXVCyjonxzss2BOCJkoAoIEcsTdDsZcOBwDP2E+qs18OKQybM4vOL 17vQ== X-Gm-Message-State: AOJu0YwAWFOJek3SEH5cI8Eib+iSwQQ7nZsChy7bdIPz4tLrLgKLr7iO M27Gi+QUlTsNVwb/Yb4g4sC7nlyu8srEZM/gXt2nA+CEYHsx+f0LWdQSKx26AE+VgwWYXOLT4B7 BSqubvETDhGbmKn8oytVei5m8EuKNxcgXHEIJejEsOHQR/CvKUsOpq/r6qhFLtcfVZ2iH X-Received: by 2002:adf:fa83:0:b0:32d:5870:8b8a with SMTP id h3-20020adffa83000000b0032d58708b8amr4434057wrr.56.1697966727949; Sun, 22 Oct 2023 02:25:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFr04qHT93B17R2ly0cgUEZoUEIsFzI3dOOC6YP9Kyfv2v/Ic0IA9cU7zrHvCftWT9PAOEqEg== X-Received: by 2002:adf:fa83:0:b0:32d:5870:8b8a with SMTP id h3-20020adffa83000000b0032d58708b8amr4434039wrr.56.1697966727491; Sun, 22 Oct 2023 02:25:27 -0700 (PDT) Date: Sun, 22 Oct 2023 05:25:22 -0400 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Bernhard Beschow , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Aurelien Jarno , Marcel Apfelbaum , =?utf-8?B?SGVydsOp?= Poussineau Subject: [PULL v3 49/62] hw/isa/piix: Implement multi-process QEMU support also for PIIX4 Message-ID: <12cecd45505c239dedc8bad2ded8eab8bc2f0391.1697966402.git.mst@redhat.com> 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: 1697967041718100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bernhard Beschow So far multi-process QEMU was only implemented for PIIX3. Move the support = into the base class to achieve feature parity between both device models. Signed-off-by: Bernhard Beschow Message-Id: <20231007123843.127151-29-shentey@gmail.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/isa/piix.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/hw/isa/piix.c b/hw/isa/piix.c index cba2098ca2..04ebed5b52 100644 --- a/hw/isa/piix.c +++ b/hw/isa/piix.c @@ -374,6 +374,7 @@ static void pci_piix_realize(PCIDevice *dev, const char= *uhci_type, } =20 pci_bus_irqs(pci_bus, piix_set_pci_irq, d, PIIX_NUM_PIRQS); + pci_bus_set_route_irq_fn(pci_bus, piix_route_intx_pin_to_irq); } =20 static void build_pci_isa_aml(AcpiDevAmlIf *adev, Aml *scope) @@ -454,15 +455,7 @@ static const TypeInfo piix_pci_type_info =3D { =20 static void piix3_realize(PCIDevice *dev, Error **errp) { - ERRP_GUARD(); - PCIBus *pci_bus =3D pci_get_bus(dev); - pci_piix_realize(dev, TYPE_PIIX3_USB_UHCI, errp); - if (*errp) { - return; - } - - pci_bus_set_route_irq_fn(pci_bus, piix_route_intx_pin_to_irq); } =20 static void piix3_init(Object *obj) --=20 MST