From patchwork Mon Sep 11 09:16:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9946959 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BF292602C9 for ; Mon, 11 Sep 2017 09:18:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AED6728B55 for ; Mon, 11 Sep 2017 09:18:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A38D228B67; Mon, 11 Sep 2017 09:18:43 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 26A9128B55 for ; Mon, 11 Sep 2017 09:18:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drKpa-0004XH-Ml; Mon, 11 Sep 2017 09:16:38 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drKpZ-0004X9-7B for xen-devel@lists.xenproject.org; Mon, 11 Sep 2017 09:16:37 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id C3/72-15060-47456B95; Mon, 11 Sep 2017 09:16:36 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42JxWrrBXrcoZFu kwZPvKhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8abNf+YC2bxVbxoXMfWwPibq4uRk0NCwF/i wIdnzCA2m4COxMW5O9m6GDk4RARUJG7vNQAxmQW0JJaslAKpEBaIkOh7844FxGYRUJV4fewwE 4jNK2Ap8fr2TzaIiXoSbye+YISIC0qcnPkErJ5ZQFOidftvdghbXqJ562ywrUICihL98x6wTW DkmYWkZRaSlllIWhYwMq9i1ChOLSpLLdI1NNJLKspMzyjJTczM0TU0MNPLTS0uTkxPzUlMKtZ Lzs/dxAgMHAYg2MF4eWPAIUZJDiYlUd53x7dECvEl5adUZiQWZ8QXleakFh9ilOHgUJLgzQ3e FikkWJSanlqRlpkDDGGYtAQHj5IIbxFImre4IDG3ODMdInWKUZej4+bdP0xCLHn5ealS4ry/g 4CKBECKMkrz4EbA4ukSo6yUMC8j0FFCPAWpRbmZJajyrxjFORiVhHnXg6ziycwrgdv0CugIJq AjeC5tATmiJBEhJdXA6DftpWJdeduV+Q8iD9ckxF2uuKmf+5MvlUc2xGXTertn/4TOpGnc/r5 HtMFD7bqGj1CxYmnenLTNCxJCmwSM7vdwMAW4XRa0r7ga65/TmB1rdkfI8cSn2rlzc0Lu1GxI 80q/f037hZHS0lS5yKMuWlzz5Uy1O6NYihem3j/MtUh46cqpWeJKLMUZiYZazEXFiQCTs/cto gIAAA== X-Env-Sender: prvs=4202b9a6e=roger.pau@citrix.com X-Msg-Ref: server-16.tower-27.messagelabs.com!1505121392!115776571!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 47549 invoked from network); 11 Sep 2017 09:16:34 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-16.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 11 Sep 2017 09:16:34 -0000 X-IronPort-AV: E=Sophos;i="5.42,377,1500940800"; d="scan'208";a="447373332" From: Roger Pau Monne To: Date: Mon, 11 Sep 2017 10:16:28 +0100 Message-ID: <20170911091628.22976-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.11.0 (Apple Git-81) MIME-Version: 1.0 Cc: Roger Pau Monne Subject: [Xen-devel] [PATCH] pci/msi: constify the pci_dev parameter of pci_msi_conf_write_intercept X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP And the one for find_msi_entry. Signed-off-by: Roger Pau Monné --- Jan Beulich Andrew Cooper --- xen/arch/x86/msi.c | 4 ++-- xen/include/asm-x86/pci.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c index 77998f4fb3..f9f0d9d5c3 100644 --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -657,7 +657,7 @@ int msi_free_irq(struct msi_desc *entry) return 0; } -static struct msi_desc *find_msi_entry(struct pci_dev *dev, +static struct msi_desc *find_msi_entry(const struct pci_dev *dev, int irq, int cap_id) { struct msi_desc *entry; @@ -1274,7 +1274,7 @@ void pci_cleanup_msi(struct pci_dev *pdev) msi_free_irqs(pdev); } -int pci_msi_conf_write_intercept(struct pci_dev *pdev, unsigned int reg, +int pci_msi_conf_write_intercept(const struct pci_dev *pdev, unsigned int reg, unsigned int size, uint32_t *data) { u16 seg = pdev->seg; diff --git a/xen/include/asm-x86/pci.h b/xen/include/asm-x86/pci.h index 36801d317b..29520164fe 100644 --- a/xen/include/asm-x86/pci.h +++ b/xen/include/asm-x86/pci.h @@ -18,7 +18,7 @@ struct arch_pci_dev { int pci_conf_write_intercept(unsigned int seg, unsigned int bdf, unsigned int reg, unsigned int size, uint32_t *data); -int pci_msi_conf_write_intercept(struct pci_dev *, unsigned int reg, +int pci_msi_conf_write_intercept(const struct pci_dev *, unsigned int reg, unsigned int size, uint32_t *data); bool_t pci_mmcfg_decode(unsigned long mfn, unsigned int *seg, unsigned int *bdf);