From patchwork Fri Feb 25 15:39:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12760495 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id DF861C433F5 for ; Fri, 25 Feb 2022 15:40:23 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.279467.477173 (Exim 4.92) (envelope-from ) id 1nNchX-0007Fs-Sw; Fri, 25 Feb 2022 15:40:11 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 279467.477173; Fri, 25 Feb 2022 15:40:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nNchX-0007Fl-Pf; Fri, 25 Feb 2022 15:40:11 +0000 Received: by outflank-mailman (input) for mailman id 279467; Fri, 25 Feb 2022 15:40:10 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nNchW-0005ID-Pj for xen-devel@lists.xenproject.org; Fri, 25 Feb 2022 15:40:10 +0000 Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 35f42b01-9651-11ec-8539-5f4723681683; Fri, 25 Feb 2022 16:40:09 +0100 (CET) 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: 35f42b01-9651-11ec-8539-5f4723681683 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1645803609; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=g1MzI94IsfiVMIInuKuZHybLDc3Vy+sXaMWZ+g/T0Uc=; b=QDeMbZOrNSJT2WVmJxu50FU+e/cfVm1SJJ9TLACcrEwt8YprAACb9RqH ZlVbE6Qc8aB6gChy2MDUz0iDuF1DXdJme1quJTjIkFRtopKjT+NTqcqTy iW1bGQZMU12LkFEQZiV6lYQxovv4vwYjW5ZUl8GP3VtHjkuwzwlrQA9d2 U=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 65409743 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:CmJS9aKFpS1efbFVFE+R2pUlxSXFcZb7ZxGr2PjKsXjdYENS3mNWy zYeCD2PPfbZYWf9f913aYzioUMB6p6EzIMxSVdlqX01Q3x08seUXt7xwmUcns+xwm8vaGo9s q3yv/GZdJhcokf0/0vrav67xZVF/fngqoDUUYYoAQgsA148IMsdoUg7wbRh2NQ12YLR7z6l4 rseneWOYDdJ5BYsWo4kw/rrRMRH5amaVJsw5zTSVNgT1LPsvyB94KE3fMldG0DQUIhMdtNWc s6YpF2PEsE1yD92Yj+tuu6TnkTn2dc+NyDW4pZdc/DKbhSvOkXee0v0XRYRQR4/ttmHozx+4 NodrLzgZyMWB4DFpsgUUAkINgh4YIQTrdcrIVDn2SCS50jPcn+qyPRyFkAme4Yf/46bA0kXq 6ZecmpUKEne2aTmm9pXScE17ignBNPsM44F/Glp0BnSDOo8QICFSKLPjTNd9Glt2pgfQqqFD yYfQWJqVRLLfBFhBlAKCbsck+Clr0jBNCIN/Tp5ooJoujOOnWSdyo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1snk2o5VI/jO8oiWBFW4d2Us4dkWUmxjIaLH48JlO61Gh+e9 MeTP00pcwmO29yVkqp8VWGm7eXLzcO9hTveDl2hiXa6UkVoJlD9Tpp+CUupAZwyHsDceg22w 29CNUSqFhvdL5gUUsvPpZ2fSOIYla9My4kdljiZGjaKA== X-IronPort-AV: E=Sophos;i="5.90,136,1643691600"; d="scan'208";a="65409743" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dofb7jKf81jrfgbMa36Q0dYCqn27hZjf5dzHQyY08ITMuvwn4lzu03jzWDo67A6bN2TDSFslFH9bbiejrgV7fW40ljMJ4a0//Ey01twg5xs1jS8Vd7PXXHCbHJc9Lisx8vw/u1cKK2EkTMlQkiwN4Agwb5sfhfUW2cL9YDtFyQrjbcslWVq6QPQhiDLoJ4Ia7zvnQM6/NzRAJ+JJOSXx+XxYctD6SiFvrRA1m/k1O2otnkvvNP0rWYhftnbdLBDLNbnPefvH6yItWiNU5gkK7eh2sLm5fzJPxKQXbTzF/v40gRYaydpxgJ//grrhza0uFMEl4OeIybob7mYTFs6Tgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2UvduzblfSFq8jsCANaC3GfwcTReX1ZLErddJKkA9AQ=; b=AWA5VHNPT9giPJvW0CsYL5av8ZURrHZ8fTKgnriehS4oAPzLfzq4VBGDXyGMU4cnrWd4daWuk8X7KVlM3h/VWWUiscPb9N7pZpCcsv7leAk3QqbqhK29uH6YnzDabO/g8/+vZrn2ek7VwdnRuqkzFJENQ9o0mopyXR/y48cDF2OJK1uM+/NGfVlazj/mcnxaQBEmQEC4kKmgrg1Z0lGANg4/vMahR5nvcTQxff7sggtKleIk88xLVjfjFX0EsbuLeOtKORudmHYlD/t5yRH3kphQQwzlGV8RHDEDodPMAlesHy9fgA253X7uEp9aIMwDh/mQmtasJc17phyy/Z4X4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2UvduzblfSFq8jsCANaC3GfwcTReX1ZLErddJKkA9AQ=; b=hg55IgwCaZCEZPN6tm57OOU2MN8cPUn0uh+NU79u8e8kNVrT/sBBsJIk8KzZ1D/tfYdMQwOcw1kWAO8rHWU3JyvZnRD66J7Kc3xFIf2GUMrysmzDQrT9v4oolR5v0p5rAlqIONjTyZ2StCHlz5nH6717CFm9SVa7CbNNeztPbd8= From: Roger Pau Monne To: CC: Alex Olson , Roger Pau Monne Subject: [PATCH v2 0/2] vpci/msix: fix PBA acceses Date: Fri, 25 Feb 2022 16:39:54 +0100 Message-ID: <20220225153956.1078-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: LO4P123CA0174.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18a::17) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df0125cc-c681-4391-bc0b-08d9f87517c6 X-MS-TrafficTypeDiagnostic: SN6PR03MB3982:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +vnxgOFocCTc0CGB98KejT5bkqwxZVi26rgOp83rO+eIkTz5PTE7TabnQYrTDcjrS9ZnrjmbFsl5oQ5ARcCx2bzvebgKcTcmNg7gkxNisglTvxdn16Pz/R+y6//Ez2PcJbaqbaSDCLNeQ4uvCBfIU7OlToNhC62KOEGIStCl65VleBLx8Z+WnniLbMcWDNsdYt17o5D0xGil7cd2zMtJUDB26yVc59AlwW7UwI7GC2GwIlQ0v6Hcre+z1SZpqpRvIDdTlWRXy1cVe1HTvJjhMj15d2A6yNPUWwpMljvCdE3E2cNUJLCCOShTM9G3/SQPPBpwJ9ycL5U4Kd1TsSX09cvoIhX9xLqiq/u99LByStMfUpaEGmCWh8jPAyxXuGMtGVJrBw2KOEU989jnp8Kd334nKcFKnhkxw/m4IU4NKKKj1oXlVZGKjPXL2+PwRN7/eXgs3e7nGILAFKb8+BUgdbhtR7uSnYgtrgH1TH9Lgr/xtPaWxYgRpBDyxhYWzbvnnIvrfha70IJnAGSAt3eYTNnbMQ/yiHxnMdRODOKLADnpz/bBfeoxYTBDj/XweyqfsDuYJMKiYkVzyiqNfFpGXxDipsBU6nxW6TRsGEPMcbV+0WYTUJc6AQgzxShsH+X6+lmGXb/besVLoS4yIBYx5Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(38100700002)(1076003)(82960400001)(6916009)(83380400001)(6666004)(54906003)(86362001)(2906002)(26005)(8936002)(107886003)(186003)(36756003)(316002)(6486002)(66476007)(66556008)(4744005)(5660300002)(508600001)(2616005)(8676002)(6506007)(66946007)(4326008)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?kMyysRLAXz4XMqoi7UCJpN+NL6db?= =?utf-8?q?N6w5MxE30lbI3wezp0ZA8r/+wpqkpdFIl6clSZD1VHushAr0x4qLFwqdV8CexWqC2?= =?utf-8?q?lhK9mBCMJ2zI0/wab+tmGNk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vRUSNxsSm0?= =?utf-8?q?OjY7nA9ivj5bY3YtY0/yzi95FduMqPZxTjf44CxdzVX7qBYzizVTTh9epnhTyii/m?= =?utf-8?q?47LqiIipG1e5p44QGNOCR4EiNagy2cYozXg8FE/LgGEv2aVb+Uxd2Tx5NAttYLvIc?= =?utf-8?q?uMQEn6IzZKG929Ao8u1gBxGeCYyHtlCbyZT9rCK1KuOnXpEztxPvy+chYlp3ssBll?= =?utf-8?q?Xulkuvnb3eARqcVGWJywmhL+6xnT4DLdluEbXHOZxZKkTkg8E5V4JyvmM7Sg6SdJZ?= =?utf-8?q?/ZM/Y6xgULrmHU2hasyOjIUCI5Dsi5UhImjiDX2SySteGLbTUYUfFBVME6yvKOe2f?= =?utf-8?q?CDb4qJnC1x659Et11gPcYIHylgJY9OwS027HI72yHiZBcMBdszJik031emakrAKEN?= =?utf-8?q?t2zRq8GEVf753lW2bl9fdKaXCtz7x1fELu8ZUn8WYvFveyRqDc+cy8TIuMRTa+6xV?= =?utf-8?q?PokKsCSlwKrF4GY6NPYeMlNVDZGG8HpuWAhmCqoHMlfbjdo3AKVK7hb2sIYGOX98H?= =?utf-8?q?ObhpbLwkYyktUvz5l16ipa1aZEIm+4M2STIUVkqLuuCSIlMeUmZi8Eo=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: df0125cc-c681-4391-bc0b-08d9f87517c6 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Feb 2022 15:40:04.4178 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ndCD/PS+nMGm3Q7WQwC7OLg7l0m/XkDvz11GsG0MIr9D/WRvhisGdpV5IJrRtLKcLYMuuyyE7s1PqyquN8YilA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR03MB3982 X-OriginatorOrg: citrix.com Hello, First patch is just a preparatory non-functional change to reduce indentation. Second patch is the one that actually fixes access to the PBA. Thanks, Roger. Roger Pau Monne (2): vpci/msix: reduce indentation in msix_write PBA handling vpci/msix: fix PBA accesses xen/drivers/vpci/msix.c | 78 ++++++++++++++++++++++++++++++++--------- xen/drivers/vpci/vpci.c | 2 ++ xen/include/xen/vpci.h | 2 ++ 3 files changed, 66 insertions(+), 16 deletions(-)