Received: from eggs.gnu.org ([2001:4830:134:3::10]:54909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1Ei4-0006xp-Ut for qemu-devel@nongnu.org; Mon, 31 Oct 2016 11:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1Ei0-0005xB-2Q for qemu-devel@nongnu.org; Mon, 31 Oct 2016 11:41:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55064) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1Ehz-0005wl-TO for qemu-devel@nongnu.org; Mon, 31 Oct 2016 11:41:11 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9349731B31A for ; Mon, 31 Oct 2016 15:41:09 +0000 (UTC) References: <1477925211-24768-1-git-send-email-marcel@redhat.com> From: Laszlo Ersek Message-ID: <4073c546-ec33-806c-55c0-58dedc4df997@redhat.com> Date: Mon, 31 Oct 2016 16:41:06 +0100 MIME-Version: 1.0 In-Reply-To: <1477925211-24768-1-git-send-email-marcel@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V3] docs: add PCIe devices placement guidelines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum , qemu-devel@nongnu.org Cc: kraxel@redhat.com, laine@redhat.com, drjones@redhat.com, abologna@redhat.com, alex.williamson@redhat.com, berrange@redhat.com, mst@redhat.com On 10/31/16 15:46, Marcel Apfelbaum wrote: > Proposes best practices on how to use PCI Express/PCI device > in PCI Express based machines and explain the reasoning behind them. > > Signed-off-by: Marcel Apfelbaum > --- > > Hi, > > v2->v3: > - Addressed the comments from Andrea Bolognani and Laszlo Ersek, which are > much appreciated! > - Added links to presentations that may help the understanding of the document. [snip] > +2.1.1 To plug a device into a pcie.0 as a Root Complex Integrated Endpoint use: The typo still isn't entirely fixed (it still says "into a pcie.0"), but I don't think it justifies another repost in itself. There's another instance of this typo in the document, so if you do repost, please fix that as well (section 2.3.1). [snip] > +2.2.1 Plugging a PCI Express device into a PCI Express Root Port: > + -device ioh3420,id=root_port1,slot=x[,chassis=y][,bus=pcie.0][,slot=y][,addr=z] \ > + -device ,bus=root_port1 > + Note that (slot, chassis) pair is mandatory and must be > + unique for each PCI Express Root Port. Please remove "[,slot=y]"; it is no longer necessary. (The "slot=x" device property has been promoted to mandatory in this version.) [snip] > +3. IO space issues > +=================== > +The PCI Express Root Ports and PCI Express Downstream ports are seen by > +Firmware/Guest OS as PCI-PCI Bridges. As required by the PCI spec, each > +such Port should be reserved a 4K IO range for, even though only one > +(multifunction) device can be plugged into each Port. This results in > +poor IO space utilization. > + > +The firmware used by QEMU (SeaBIOS/OVMF) may try further optimizations > +by not allocating IO space or each PCI Express Root / PCI Express s/IO space *or* each/IO space *for* each/ With those changes: Reviewed-by: Laszlo Ersek Thank you, Marcel! Laszlo