Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2708382pxb; Tue, 12 Oct 2021 11:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz0suGCBE/o0ZbHCeuOMCUz5RousT3E+34JMFrkhGUNj+SuMM1/Ncc8JnIe0MExSZKueOU X-Received: by 2002:a17:902:b20e:b029:12b:fd6f:44c3 with SMTP id t14-20020a170902b20eb029012bfd6f44c3mr32012374plr.36.1634064595216; Tue, 12 Oct 2021 11:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634064595; cv=none; d=google.com; s=arc-20160816; b=0ZIaZ3xyg0yQXSoZ8MO57mATTcfTFmGbKsZ4vbyv0cS+my9Jw0PMwR2pxxBxLm6PsX vTrFi+X4hD7hkwU969DRTRv0nwXbfY23Hemi+Vt6VWtTndOfILr5REkQo6JvNsXjPA1O xe10fNu3JZaAdQj30/kZEyr1zx0TcJXpk+LfARKpR0wWq1XO7OIVHI/3uQF+jo/idk9J QI3lqmi+srRtk9CfkDelARH9UW6Suz6x+w2TuD5oqNrNjxi6cc1wXMt4kFkioTip7+fX DA0uBdN845QjfKf7lIQZk6JZI2CfeVyaMY9jZ358vu2xSa66DsfR5aiwBx2cChqH409L XvGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=0pfwsN9CGwM67bGqxvQouMMoqffTJNZ2fA/zrYqVicc=; b=Qids0ydiPwdHPTRTG6qj3RE+ZctsqviAYbQbaHEQw7+44KkYqY3risO9IU3k0CtHZS Mne4Z3MD7JRO3YwXwUNPUfT9B7GdhyAPRfCfahyY9S6qQGBqUWM+T91AeSY87ZmMNfuT zmSDs0WX/GWeaCYVJtt91v4Y1IaV0opYRdPJDvE/BCqoh91U1PlFdXzxEVhfFXMIWIAr dhy5xQQY0QKK1GNnrF8QCzLRV+6/lhDzZSxXag3mUlpELrsLecBQDV/VKd2xW8NznKED 2N7C8ey39Y8S8jipZtBiAMs6S+ay5eG3UPbc148N2zJR4av+voD1EB3mK+j4vV6wdhWK dDeQ== 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 z20si5905376pgc.142.2021.10.12.11.49.42; Tue, 12 Oct 2021 11:49: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 S234675AbhJLSj7 (ORCPT + 99 others); Tue, 12 Oct 2021 14:39:59 -0400 Received: from mga03.intel.com ([134.134.136.65]:46818 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234577AbhJLSj6 (ORCPT ); Tue, 12 Oct 2021 14:39:58 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="227195754" X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="227195754" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 11:37:24 -0700 X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="562780711" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.115.208]) ([10.209.115.208]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 11:37:20 -0700 Message-ID: <2c9e9cdc-041c-1310-8063-115b678974d3@linux.intel.com> Date: Tue, 12 Oct 2021 11:37:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v5 12/16] PCI: Add pci_iomap_host_shared(), pci_iomap_host_shared_range() Content-Language: en-US To: Christoph Hellwig , "Michael S. Tsirkin" Cc: 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 , Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Josh Poimboeuf , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , 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 References: <20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009003711.1390019-13-sathyanarayanan.kuppuswamy@linux.intel.com> <20211011142956-mutt-send-email-mst@kernel.org> From: Andi Kleen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/11/2021 10:31 PM, Christoph Hellwig wrote: > On Mon, Oct 11, 2021 at 03:09:09PM -0400, Michael S. Tsirkin wrote: >> The reason we have trouble is that it's not clear what does the API mean >> outside the realm of TDX. >> If we really, truly want an API that says "ioremap and it's a hardened >> driver" then I guess ioremap_hardened_driver is what you want. > Yes. And why would be we ioremap the BIOS anyway? It is not I/O memory > in any of the senses we generally use ioremap for. I/O memory is anything outside the kernel memory map. -Andi