From patchwork Thu Feb 14 05:08:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 10811797 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 16C6113A4 for ; Thu, 14 Feb 2019 05:10:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 027202D3A4 for ; Thu, 14 Feb 2019 05:10:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E78172D3C4; Thu, 14 Feb 2019 05:10:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 92E7B2D3A4 for ; Thu, 14 Feb 2019 05:10:02 +0000 (UTC) Received: from localhost ([127.0.0.1]:40257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gu9Hd-0003O2-9S for patchwork-qemu-devel@patchwork.kernel.org; Thu, 14 Feb 2019 00:10:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gu9GR-0003Mk-7s for qemu-devel@nongnu.org; Thu, 14 Feb 2019 00:08:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gu9GF-0003xr-Pc for qemu-devel@nongnu.org; Thu, 14 Feb 2019 00:08:39 -0500 Received: from ozlabs.org ([2401:3900:2:1::2]:39607) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gu9GE-0003nQ-T0 for qemu-devel@nongnu.org; Thu, 14 Feb 2019 00:08:35 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 440PY80tH6z9sMr; Thu, 14 Feb 2019 16:08:11 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1550120892; bh=H68nSEX9gAaldtBv0Fbj4eP2KU7yYrdcWHA4gRfw+40=; h=From:To:Cc:Subject:Date:From; b=IsJHGkzTVom7GZ1tOOS4AsCDo05d5rcO2lQGnxvuFQQMV8tRRLwgNkVZXUH4zCqBJ 7iChmZvqF/b7h1gF+3HN/GUeeIeRzcJvYvQvyqa8Mq2U/BMqV7VyYikQBi96UfOM0z pgD2SKfWC4/k/bkUnwl1ej7CEAeeken54ykVslGQ= From: David Gibson To: mst@redhat.com, qemu-devel@nongnu.org Date: Thu, 14 Feb 2019 16:08:06 +1100 Message-Id: <20190214050808.16653-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PATCH 0/2] Some small cleanups and corrections to PCI-E handling X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mdroth@linux.vnet.ibm.com, David Gibson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Here are a couple of cleanups for PCI-E handling which arose out of some other work I have in progress. At least the first of these patches has been posted before as part of a different series, but wasn't ready to go at the time. David Gibson (2): pci: Simplify pci_bus_is_root() pcie: Don't allow extended config space access via conventional PCI bridges hw/pci-bridge/pci_expander_bridge.c | 6 ----- hw/pci/pci.c | 40 ++++++++++++++++++++++------- hw/virtio/virtio-pci.c | 1 + include/hw/pci/pci.h | 5 ++-- include/hw/pci/pci_bus.h | 13 ++++++++++ 5 files changed, 48 insertions(+), 17 deletions(-)