Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2180050pxb; Fri, 24 Sep 2021 23:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAAGMzw1H1/VgyBxS8TGqFq/JgzS86pwDLO22HkYWfY8SMtUl9fIwNe5k8B9Lf4qknkuG6 X-Received: by 2002:a92:c26f:: with SMTP id h15mr11306621ild.271.1632551815663; Fri, 24 Sep 2021 23:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632551815; cv=none; d=google.com; s=arc-20160816; b=xbj+2QmZSf33BeTG1MJ6iwHPitApx6WO5ORVnOAvNoP3aWnU4l1y3Oh1UrPYaDWAo8 kkFvflI+T+jUT7bkCdCV/Ng8CW9JDASkNuNpAz47ao9nt6ACPrZckwqBdHQ6l+ls7i9o uwjRF+QuCc0M1+XDM8vvLUvv2BUvBjmWNQ0toC9TaDsOAgG8pKXBBCCoC4u0DFfJoT6c CDuJErTNLGTJKqiKJh+9tHvTGdQ7JictK+XwQnhhuw1wbFwq/ZsQInSekjd1GE3f+M7S ZBtQumUGh4/oDNRzIS3i2BvfyzimaHGOOr8FtFTKDyb0vAEyWa78Xr3b1aE2ukMxofv+ ML5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=aAIHsyFqLie38+xNZTcmvgJoHYd3YZJXVe5I41aleWU=; b=Y8SIlEyd8IQi/Wca9lntVo3byQCI7s4qrj3wdp7drL5VG0wMj1lJiMYegp18/wdILI 2idTGetS/8RusbN2VhK/wkqbVxO63scBLX5Htm6BaUaY5cClrwBOz5sHYK1R71qH2SgL eKlyLs47nojBz0/x2MjubLhEkdpvhY5jyMjviqDRIWQ6VOTFt3g7WrEotW5PURj4M+6k SbyRwjWG9f3JTKFg0gQHfbyHkzh2TGmXV/Xh00HyUTvF4vguz5mWsrQdh87jE43ZB+s7 ZqDb28EsCL3HwRI8dxyyYc7gw355OcC4QGZNIkC+nC0C+tMFirYAlq5Zp5rPfhhNyn9g NDqA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si6126955jac.10.2021.09.24.23.36.45; Fri, 24 Sep 2021 23:36:55 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345387AbhIXWpU (ORCPT + 99 others); Fri, 24 Sep 2021 18:45:20 -0400 Received: from mga03.intel.com ([134.134.136.65]:22795 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345228AbhIXWpR (ORCPT ); Fri, 24 Sep 2021 18:45:17 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10117"; a="224233866" X-IronPort-AV: E=Sophos;i="5.85,321,1624345200"; d="scan'208";a="224233866" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 15:43:43 -0700 X-IronPort-AV: E=Sophos;i="5.85,321,1624345200"; d="scan'208";a="704339730" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.251.20.113]) ([10.251.20.113]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 15:43:41 -0700 Subject: Re: [PATCH v4 11/15] pci: Add pci_iomap_shared{,_range} To: "Michael S. Tsirkin" Cc: Dan Williams , "Kuppuswamy, Sathyanarayanan" , 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 , Peter H Anvin , Dave Hansen , Tony Luck , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML , Linux Kernel Mailing List , Linux PCI , linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch , Linux Doc Mailing List , virtualization@lists.linux-foundation.org References: <20210824053830-mutt-send-email-mst@kernel.org> <20210829112105-mutt-send-email-mst@kernel.org> <09b340dd-c8a8-689c-4dad-4fe0e36d39ae@linux.intel.com> <20210829181635-mutt-send-email-mst@kernel.org> <3a88a255-a528-b00a-912b-e71198d5f58f@linux.intel.com> <20210830163723-mutt-send-email-mst@kernel.org> <69fc30f4-e3e2-add7-ec13-4db3b9cc0cbd@linux.intel.com> <20210910054044-mutt-send-email-mst@kernel.org> <20210911195006-mutt-send-email-mst@kernel.org> From: Andi Kleen Message-ID: Date: Fri, 24 Sep 2021 15:43:40 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20210911195006-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Hmm, yes that's true. I guess we can make it default to opt-in for >> pci_iomap. >> >> It only really matters for device less ioremaps. > OK. And same thing for other things with device, such as > devm_platform_ioremap_resource. > If we agree on all that, this will basically remove virtio > changes from the picture ;) Hi we revisited this now. One problem with removing the ioremap opt-in is that it's still possible for drivers to get at devices without going through probe. For example they can walk the PCI device list. Some drivers do that for various reasons. So if we remove the opt-in we would need to audit and possibly fix all that, which would be potentially a lot of churn. That's why I think it's better to keep the opt-in. -Andi