Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62C56C46467 for ; Thu, 5 Jan 2023 02:35:19 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.471592.731494 (Exim 4.92) (envelope-from ) id 1pDG5v-0004RI-Oq; Thu, 05 Jan 2023 02:35:03 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 471592.731494; Thu, 05 Jan 2023 02:35:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pDG5v-0004RB-Lq; Thu, 05 Jan 2023 02:35:03 +0000 Received: by outflank-mailman (input) for mailman id 471592; Thu, 05 Jan 2023 02:35:02 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pDG5t-0004Qm-Fq for xen-devel@lists.xenproject.org; Thu, 05 Jan 2023 02:35:02 +0000 Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8b2df3e2-8ca1-11ed-b8d0-410ff93cb8f0; Thu, 05 Jan 2023 03:34:58 +0100 (CET) Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Thu, 5 Jan 2023 02:34:56 +0000 Received: by hermes--production-ne1-7b69748c4d-rglm6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ac337fbdd3f23fe8dbfff1f809657b1b; Thu, 05 Jan 2023 02:34:50 +0000 (UTC) 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: 8b2df3e2-8ca1-11ed-b8d0-410ff93cb8f0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1672886096; bh=/pRkfyPTTNceKNunGNRzqNqyo3veLlHP7DUWR1szcLQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=V2vW5f5Uy+sJKNuydA6aOe5NtERI8guZXx/KTQOH8sk5WVpJrSco7chMF9TZ5mT/wCJB1hOXZKYgtq0TwjIBY8EOe64Cy7wwwYzksEL/AJjKbd5kUWF1yzMttZqENpXg7aykoVF7MACyshYLm7bRmV9f20iq6uqFHRYcUi+2BFydZoyvUnJt0airuiB6z7+wjxg1y2Zqm36NRBAMvZj5/rS0Tm0SzvQ8+mMw4Cm2PbSJ0DfSGZdS0g6/a2f4Ds8hQLAs844R1sRKauZRK31y7Hzk2sZbmmyg7nnD89Y+KUjq2PvkCFsw2+UdzmYKbkMUvWpWSiGrkvu5Kshloc8hOg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672886096; bh=SUmFmCwnNydbHOG0E0HDGzqHeyfavww5DndpuizCsUo=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=Kjt/pFUbGuld+5RFIx3jW/KIhauf9E5JSh+SHMpql3A3Xofswqz9trqnGk3kw5WBwZ8WL0ZL//p04FgiPANN4u65O29eNG6/zxinPC+OQwQciUcyX8sFgz3M57hwUcPQ6KgZ0C31/H569vLdBoEjmV5W85H3lszxoXTT+BYg7RHvImQdtp7eARPaVAk5hGG3+VDKyyfa2QtvfKXC4WMBZRcIrwPgKAzM0e5ter5orr8JzCNHpLRm/8yr5IY0HAmaL9Oc63FF616NigXzbDRKr8n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nRTiix_kXKOzGCb_Wel0oYEW4JE7kus6KWlDaAoEp2CgTmNa28FRzY AaSJ0Fm4o8BkNCUowfAz5rvVmSvsu_rbpM2Fu9N6V5RaSgiIjOi6kSycqUfMtHj6Jc6J.N2.s.mZ 6SGewiDdW98VXChfXmttbARU_f2qjVbj9bcWXZZnwX1NmlX08zkueL9rdF8vZKBVETfjuHzLj9.r XjqUi2ypTBepw2iX_Jd_9L4.gSQ-- X-Sonic-MF: Message-ID: <157390bd-4d1f-64be-49df-639ddbd8bf2d@aol.com> Date: Wed, 4 Jan 2023 21:34:46 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 6/6] hw/isa/piix: Resolve redundant TYPE_PIIX3_XEN_DEVICE Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Bernhard Beschow , qemu-devel@nongnu.org, Markus Armbruster Cc: Richard Henderson , Stefano Stabellini , xen-devel@lists.xenproject.org, =?UTF-8?Q?Herv=c3=a9_Poussineau?= , Aurelien Jarno , Paul Durrant , Marcel Apfelbaum , Anthony Perard , "Michael S. Tsirkin" , Paolo Bonzini , Eduardo Habkost , Thomas Huth References: <20230104144437.27479-1-shentey@gmail.com> <20230104144437.27479-7-shentey@gmail.com> <1c2e0780-e5fb-1321-0d84-b0591db9fec7@linaro.org> <92efe0f1-f22b-47bc-f27d-2f31cb3621ea@aol.com> <877abde0-2e76-7fde-0212-eb7ce1384ea6@linaro.org> From: Chuck Zmudzinski In-Reply-To: <877abde0-2e76-7fde-0212-eb7ce1384ea6@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol On 1/4/2023 5:18 PM, Philippe Mathieu-Daudé wrote: > On 4/1/23 20:29, Chuck Zmudzinski wrote: > > On 1/4/23 1:48 PM, Philippe Mathieu-Daudé wrote: > > >> Here TYPE_PIIX3_DEVICE means for "PCI function part of the PIIX > >> south bridge chipset, which expose a PCI-to-ISA bridge". A better > >> name could be TYPE_PIIX3_ISA_PCI_DEVICE. Unfortunately this > >> device is named "PIIX3" with no indication of ISA bridge. > > > > > > Thanks, you are right, I see the PIIX3 device still exists after > > this patch set is applied. > > > > chuckz@debian:~/sources-sid/qemu/qemu-7.50+dfsg/hw/i386$ grep -r PIIX3 * > > pc_piix.c: pci_dev = pci_new_multifunction(-1, true, TYPE_PIIX3_DEVICE); > > > > I also understand there is the PCI-to-ISA bridge at 00:01.0 on the PCI bus: > > > > chuckz@debian:~$ lspci > > 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) > > All these entries ('PCI functions') ...: > > > 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] > > 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] > > 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01) > > 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) > > ... are part of the same *device*: the PIIX south bridge. > > This device is enumerated as #1 on the PCI bus #0. > It currently exposes 4 functions: ISA/IDE/USB/ACPI. > > > 00:02.0 Unassigned class [ff80]: XenSource, Inc. Xen Platform Device (rev 01) > > 00:03.0 VGA compatible controller: Device 1234:1111 (rev 02) > > > > I also see with this patch, there is a bridge that is a PIIX4 ACPI at 00:01.3. > > I get the exact same output from lspci without the patch series, so that gives > > me confidence it is working as designed. > > Historically the PIIX3 and PIIX4 QEMU models have been written by > different people with different goals. > > - PIIX3 comes from x86 machines and is important for KVM/Xen > accelerators > - PIIX4 was developed by hobbyist for MIPS machines > > PIIX4 added the ACPI function which was proven helpful for x86 machines. > > OS such Linux don't consider the PIIX south bridge as a whole chipset, > and enumerate each PCI function individually. So it was possible to add > the PIIX4 ACPI function to a PIIX3... A config that doesn't exist with > real hardware :/ > While QEMU aims at modeling real HW, this config is still very useful > for KVM/Xen. So this Frankenstein config is accepted / maintained. > > Bernhard is doing an incredible work merging the PIIX3/PIIX4 differences > into a more maintainable model :) > > Regards, > > Phil. Thanks for the nice explanation of the history. I understand the PIIX3 is associated with the i440fx machine type for i386 - it goes all the way back to 1995 I think with the original 32-bit Pentium processor and Windows 95. So it is a worthwhile effort to work on updating this to something newer, and of course kvm can use the newer Q35 chipset which goes back to 2009 or so, I think, but xen/x86 languishes on the i440fx for now. Best regards, Chuck