From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiyM6-0006tb-5q for qemu-devel@nongnu.org; Fri, 27 Jul 2018 04:44:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiyM1-0006Q4-AF for qemu-devel@nongnu.org; Fri, 27 Jul 2018 04:44:10 -0400 Message-ID: <7a9314f5f53d59f4116fbd5ff1a45226ff16a257.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Fri, 27 Jul 2018 18:43:41 +1000 In-Reply-To: References: <20180628083633.12413-1-clg@kaod.org> <20180628083633.12413-2-clg@kaod.org> <20180718061230.GE2102@umbus.fritz.box> <20180727053247.GK3694@umbus.fritz.box> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 1/2] ppc/pnv: Add model for Power8 PHB3 PCIe Host bridge List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?C=E9dric?= Le Goater , David Gibson Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Marcel Apfelbaum , Andrea Bolognani , "Michael S. Tsirkin" On Fri, 2018-07-27 at 10:25 +0200, C=C3=A9dric Le Goater wrote: > Each PHB creates a pci-bridge device and the PCI bus that comes with it= .=20 > It makes things easier to define PCI devices.=20 >=20 > It is still quite complex ... Here is a sample : >=20 > qemu-system-ppc64 -m 2G -machine powernv \ > -cpu POWER8 -smp 2,cores=3D2,threads=3D1 -accel tcg,thread=3Dmulti \ > -kernel ./zImage.epapr -initrd ./rootfs.cpio.xz -bios ./skiboot.lid \ > \ > -device megasas,id=3Dscsi0,bus=3Dpci.0,addr=3D0x1 \ > -drive file=3D./rhel7-ppc64le.qcow2,if=3Dnone,id=3Ddrive-scsi0-0-0-0,= format=3Dqcow2,cache=3Dnone \ > -device scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D0,drive=3D= drive-scsi0-0-0-0,id=3Dscsi0-0-0-0,bootindex=3D2 \ > \ > -device ich9-ahci,id=3Dsata0,bus=3Dpci.1,addr=3D0x1 \ > -drive file=3D./ubuntu-ppc64le.qcow2,if=3Dnone,id=3Ddrive0,format=3Dq= cow2,cache=3Dnone \ > -device ide-hd,bus=3Dsata0.0,unit=3D0,drive=3Ddrive0,id=3Dide,bootind= ex=3D1 \ > -device e1000,netdev=3Dnet0,mac=3DC0:FF:EE:00:00:02,bus=3Dpci.1,addr=3D= 0x2 \ > -netdev bridge,helper=3D/usr/libexec/qemu-bridge-helper,br=3Dvirbr0,i= d=3Dnet0 \ > -device nec-usb-xhci,bus=3Dpci.1,addr=3D0x7 \ I don't understand why. That means you can't put emulated (or real) PCIe device below it ? Why force them down the path of having a bridge to legacy PCI always ? My original intent was to have one such bridge in a machine for the various default PCI devices qemu has that aren't (yet) PCIe (and also for testing :-) but I never thought we'd throw one onto every PCIe bus. Ben.