From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31D82C433ED for ; Thu, 29 Apr 2021 14:47:34 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BA61C61446 for ; Thu, 29 Apr 2021 14:47:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA61C61446 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.120077.227057 (Exim 4.92) (envelope-from ) id 1lc7wc-0001w0-Jy; Thu, 29 Apr 2021 14:47:10 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 120077.227057; Thu, 29 Apr 2021 14:47:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lc7wc-0001vt-Ge; Thu, 29 Apr 2021 14:47:10 +0000 Received: by outflank-mailman (input) for mailman id 120077; Thu, 29 Apr 2021 14:47:08 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lc7wa-0001vo-EM for xen-devel@lists.xenproject.org; Thu, 29 Apr 2021 14:47:08 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 356d9e51-bb3c-4020-b062-c28ea55e641f; Thu, 29 Apr 2021 14:47:06 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B794A1FB; Thu, 29 Apr 2021 07:47:05 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D4293F73B; Thu, 29 Apr 2021 07:47:03 -0700 (PDT) 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: 356d9e51-bb3c-4020-b062-c28ea55e641f From: Rahul Singh To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, rahul.singh@arm.com, Jan Beulich , Paul Durrant , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu , George Dunlap , Ian Jackson , Julien Grall , Stefano Stabellini , Daniel De Graaf Subject: [PATCH v4 0/3] xen/pci: Make PCI passthrough code non-x86 specific Date: Thu, 29 Apr 2021 15:46:50 +0100 Message-Id: X-Mailer: git-send-email 2.17.1 This patch series is preparatory work to implement the PCI passthrough support for the ARM architecture. Rahul Singh (3): xen/iommu: Move iommu_update_ire_from_msi(..) to xen/iommu.h xen/pci: Refactor PCI MSI intercept related code xen/pci: Refactor MSI code that implements MSI functionality within XEN xen/arch/x86/Kconfig | 1 + xen/drivers/passthrough/Makefile | 1 + xen/drivers/passthrough/msi-intercept.c | 94 +++++++++++++++++++++++++ xen/drivers/passthrough/pci.c | 61 ++++------------ xen/drivers/pci/Kconfig | 4 ++ xen/drivers/vpci/Makefile | 3 +- xen/drivers/vpci/header.c | 19 ++--- xen/drivers/vpci/msix.c | 55 +++++++++++++++ xen/drivers/vpci/vpci.c | 3 +- xen/include/xen/iommu.h | 13 +++- xen/include/xen/msi-intercept.h | 56 +++++++++++++++ xen/include/xen/pci.h | 11 +-- xen/include/xen/vpci.h | 41 +++++------ xen/xsm/flask/hooks.c | 8 +-- 14 files changed, 270 insertions(+), 100 deletions(-) create mode 100644 xen/drivers/passthrough/msi-intercept.c create mode 100644 xen/include/xen/msi-intercept.h -- 2.17.1