From nobody Mon Feb 9 21:21:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1678622578; cv=none; d=zohomail.com; s=zohoarc; b=Dn2lUliLm39gTrW357B7PQIUblvL17CssAYpMS6KqOPjJGtO0hJf2u0EHHwFkU7/XeAcKpf60tZsQmGhyIHzxwQxIpfD73F2aQvOBNJOduM6VxUOg6mB4oG21RFPXLQbwmsvV+DZu4dB78d4wNzwL0cM/IxyE8f97bCrF4ilXXQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678622578; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=WWg4LuzaxWFvJH2Cc10WqoexJQmNb/n77OizqFG/hOg=; b=Qk/UwftlbitO3RuQBG3EuVEn6j/3Cp06U3K5qul1PoHb2k/SFDuDeAj5BbxKWjPAL9d5c2EeqCrD637UERc5fdunZVXDO/IgIF9lvkZF6gj30UsLBxq6C9YHeSpg7E109IpYyy3PSrkOzrJ8cl450NNYY/HtraYLumawWVmFiQ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1678622578191133.43172614870264; Sun, 12 Mar 2023 05:02:58 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.508986.784066 (Exim 4.92) (envelope-from ) id 1pbKPN-0003SE-LW; Sun, 12 Mar 2023 12:02:37 +0000 Received: by outflank-mailman (output) from mailman id 508986.784066; Sun, 12 Mar 2023 12:02:37 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pbKPN-0003Oz-Ch; Sun, 12 Mar 2023 12:02:37 +0000 Received: by outflank-mailman (input) for mailman id 508986; Sun, 12 Mar 2023 12:02:36 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pbKPM-0002uS-3A for xen-devel@lists.xenproject.org; Sun, 12 Mar 2023 12:02:36 +0000 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [2a00:1450:4864:20::52a]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c6f2e221-c0cd-11ed-87f5-c1b5be75604c; Sun, 12 Mar 2023 13:02:35 +0100 (CET) Received: by mail-ed1-x52a.google.com with SMTP id da10so38221300edb.3 for ; Sun, 12 Mar 2023 05:02:35 -0700 (PDT) Received: from Provence.localdomain (dynamic-078-054-022-093.78.54.pool.telefonica.de. [78.54.22.93]) by smtp.gmail.com with ESMTPSA id xj9-20020a170906db0900b009231714b3d4sm1293745ejb.151.2023.03.12.05.02.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 05:02:34 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c6f2e221-c0cd-11ed-87f5-c1b5be75604c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678622555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WWg4LuzaxWFvJH2Cc10WqoexJQmNb/n77OizqFG/hOg=; b=CRFIKihiG3gt5U7Bo9POrDRCvKcX7GhlR/4RrRquOq1v4D0aQQphgBlcVb+oKE619W Llu9/G1Ybdpw0CxHZULyucDFqERnJjlfCQ6QSuA1DH48U5evIEPeCz1tYTeXxEQicnHO IS83yQWd562FDvEzReKeF73BzrnwADN72svQtkzb/68v70DdxCeMuDCqdC1AogFwSo1U O7ZqtXNXZY0Lc9inLbJpjv1y5rww93LSySnMpjczQEdd+GZmmPxbYZ2Ncc95uROmaM2L e9pKi8P37Qdvbnfo7P80owlzihA6njd0jy1mHWVgE5ERWcrpXZ99qhFWb8leSlBPvvQ9 GlbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678622555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WWg4LuzaxWFvJH2Cc10WqoexJQmNb/n77OizqFG/hOg=; b=c/4VGLY6yjkclaQuV2S0zFxQUkTJtt1Mtx0FLTbXVgDKt3UQcXkpfGYL7qjL8nAsuH UpO3vKPXbhtS3yPZA8HaMpJQ9vK0s5qFJUx0kNSyUTwO+PdCuVVTgyCQ/3LrNIuoyGdy 0WPEeINT0snMrnPQ2BCo8syxsaJu0bKvAnVLK+q92/kPqeK/9Jj3VLqgXqQs9MMY2Dga b4qJvsaOypNeUWPvAfdDZpzTdo7zSFqR4z3MPuwk1qwWq+muiNuJyH1qfBwUnEVxR/dh CN1V3V045R0ArNlbUhlGdXdJUKVyGa9XjDB/0xP4kuY5tCHO7r8RA6wum3hc0eDKZ71a WYaQ== X-Gm-Message-State: AO0yUKXpxuTBEKUfpcVdUwB3zbKS7G8uBM0ylFcxXrf8yT/Bcm+/UhS/ GgvkP0EX3wpRnOAGsQ/fFJI= X-Google-Smtp-Source: AK7set+8bU52UZ6EPZu8793oap+FG+WY4eM5GCpxYQgaKRcrzsOTsF85v6SrfshFWBQhYEm6N29wPQ== X-Received: by 2002:a17:907:1905:b0:8a6:e075:e364 with SMTP id ll5-20020a170907190500b008a6e075e364mr30020126ejc.26.1678622555342; Sun, 12 Mar 2023 05:02:35 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Paolo Bonzini , David Woodhouse , Anthony Perard , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Aurelien Jarno , Eduardo Habkost , Paul Durrant , xen-devel@lists.xenproject.org, "Michael S. Tsirkin" , Stefano Stabellini , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Chuck Zmudzinski , Bernhard Beschow Subject: [PATCH v3 2/6] hw/isa/piix3: Reuse piix3_realize() in piix3_xen_realize() Date: Sun, 12 Mar 2023 13:02:17 +0100 Message-Id: <20230312120221.99183-3-shentey@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230312120221.99183-1-shentey@gmail.com> References: <20230312120221.99183-1-shentey@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1678622579384100007 Content-Type: text/plain; charset="utf-8" This is a preparational patch for the next one to make the following more obvious: First, pci_bus_irqs() is now called twice in case of Xen where the second call overrides the pci_set_irq_fn with the Xen variant. Second, pci_bus_set_route_irq_fn() is now also called in Xen mode. Signed-off-by: Bernhard Beschow Reviewed-by: Michael S. Tsirkin Reviewed-by: Anthony PERARD --- hw/isa/piix3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/isa/piix3.c b/hw/isa/piix3.c index 1b3e23f0d7..a86cd23ef4 100644 --- a/hw/isa/piix3.c +++ b/hw/isa/piix3.c @@ -394,7 +394,7 @@ static void piix3_xen_realize(PCIDevice *dev, Error **e= rrp) PIIX3State *piix3 =3D PIIX3_PCI_DEVICE(dev); PCIBus *pci_bus =3D pci_get_bus(dev); =20 - pci_piix3_realize(dev, errp); + piix3_realize(dev, errp); if (*errp) { return; } --=20 2.39.2