Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp630840pxb; Fri, 13 Aug 2021 02:54:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM54wP5O3s4IC8RkwnzgRkJ59PvfE5XDfDfcGGPAUZbaRkWNLzetqpKbqzblb3eA4OMIvP X-Received: by 2002:a92:c912:: with SMTP id t18mr1255544ilp.152.1628848464582; Fri, 13 Aug 2021 02:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628848464; cv=none; d=google.com; s=arc-20160816; b=klINMp8a9/J9oKb3mQj/GU0qZoohOD76Cel9ceOE0/RQBDT79ki1+B9RVEzutk8IZo eQolr+z3saJDENxNXWtTEfO5pjvKNlBZ6dn4VFeHQ2KyV8ZgZgB8TeGUt6wy0sjFNZ2o tquw1Qoi/jZ+hNlRt6KOxvm+Zcpf4OLU9niE5Yhuwu/HZ0m1BuswUIGAHAbDq7A83KfX ZT0g8I+4Wll0plYQy4afNuOk3q3OUBuRS5GVSG5yMAoVB+6+MzuK5yjlDEcZMU6R6zjJ Xnxlxxnu5hifrik2FpVUzDaRuE3e975eYXopAO2qCL46mzYgXLiKlODRstXgWEL6fml7 uzAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=J5iMSjwPMvkOFpq0TMlTZtl3sxje2OPtaEgmn6rI3kw=; b=w3liiQY30HoBZh5+NJwQH3bJOhgkNZbjGMv9wiUfy7N/j4mcw5O1rYIrFZxvUlF1ps P16VWzxMYpCgJa2jbTUqNreztzQBIIfgGYwr65PNFzelLknmmz5yo0BRbvQYvNIcdOUJ s3FGhlwi2CPRecziJ2Iu0HI/xH+Zba15RUbLRX5u+AcQxS3XdPIvRUZPFvEnuxbAJcCb 1DVSPKAMPgvhZOgoeUXKz8ldYHI0anuql0pyZDmns0FvfY8CdAtTXGECLSGZkR9F9mNP o4rePWj9pqQWzGRQLsc470p2yIyVfM4egEdaS/X0mf4TyDgzEMblnW/z3wnKPwFWKpWN v6+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=tLoy64zP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si1170644ioq.70.2021.08.13.02.54.14; Fri, 13 Aug 2021 02:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=tLoy64zP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239766AbhHMIMW (ORCPT + 99 others); Fri, 13 Aug 2021 04:12:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239668AbhHMIMV (ORCPT ); Fri, 13 Aug 2021 04:12:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C161C061756; Fri, 13 Aug 2021 01:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=J5iMSjwPMvkOFpq0TMlTZtl3sxje2OPtaEgmn6rI3kw=; b=tLoy64zP56BA6COvXf26VAiBG9 oKjbIjnNL8arRxo50od3oQ9WiLXRnnIQhwWpPCi11t8FmIOTy5frodVYORATqo1cnyknkdAttACMh IuMWI23bPAIcxV2I4FQ55yZj75VZCoja9nk9jCbJl2kLpcbtCS6bW+/E3OtXurRenuXwnHahWGhHg VmR8RasuVRLggxW1RHCjYBVYq+of6asU83tj5SwmMaoQZlZNE/hmhjV94fEjEqMYdxvBoRzvKKJgC EoAexDTExue7OUZO7UKAGrfL514yBqR5kWkuh5KUCOhD+Khwegyzwh0IZDHIBx/Bt0akrVQgr2x1g 9A5BlXNA==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mESEG-00FTaW-Kf; Fri, 13 Aug 2021 08:07:59 +0000 Date: Fri, 13 Aug 2021 09:07:48 +0100 From: Christoph Hellwig To: Kuppuswamy Sathyanarayanan Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Bjorn Helgaas , Richard Henderson , Thomas Bogendoerfer , James E J Bottomley , Helge Deller , "David S . Miller" , Arnd Bergmann , Jonathan Corbet , "Michael S . Tsirkin" , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v4 12/15] pci: Mark MSI data shared Message-ID: References: <20210805005218.2912076-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210805005218.2912076-13-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805005218.2912076-13-sathyanarayanan.kuppuswamy@linux.intel.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2021 at 05:52:15PM -0700, Kuppuswamy Sathyanarayanan wrote: > > - return ioremap(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE); > + return ioremap_shared(phys_addr, nr_entries * PCI_MSIX_ENTRY_SIZE); Please add a comment here. I also find the amount of ioremap_* variants rather frustrating. Maybe it it is time for a ioremap_flags which replaces the too-lowlevel pgprot_t of the ioremap_prot provided by some architectures with a more highlevel flags arguments that could also provide an accessible to the hypervisor flag.