From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93BBCC4332F for ; Mon, 11 Oct 2021 19:09:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78A4560E8B for ; Mon, 11 Oct 2021 19:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233481AbhJKTLU (ORCPT ); Mon, 11 Oct 2021 15:11:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:25447 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233905AbhJKTLT (ORCPT ); Mon, 11 Oct 2021 15:11:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633979359; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oZEQAOmKk6R+KRX2BzvVHC2H3CodKlCG/yzYUUC2zJA=; b=KwudnqNUzol5PC2894sI4uG23yAdPLAGs9D71BmLU2f1sO67SCq5ezRs0ddtPX9/roDXEF vt9nC3FQ5vwzV7E6nGWRVu2CNYq4TnGDtZMJE4zgfTsYOl7q+k/xB7cgf8kFOLjHHqYvk1 g2bK/LrvgBfhbsZqn5BVXa5zWqitjnA= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-41-SzzSeT8uM1WI8NiGUcxKJg-1; Mon, 11 Oct 2021 15:09:18 -0400 X-MC-Unique: SzzSeT8uM1WI8NiGUcxKJg-1 Received: by mail-ed1-f69.google.com with SMTP id v2-20020a50f082000000b003db24e28d59so16711276edl.5 for ; Mon, 11 Oct 2021 12:09:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oZEQAOmKk6R+KRX2BzvVHC2H3CodKlCG/yzYUUC2zJA=; b=GyjB8rcQdXyxaX4+oH3k2o60iTBIKbKvuUviEn2LfNF2toXSbZ/qD9iX/1HIvcxWhJ Kgq8kioRco/Xte3lEBlckPVkrcswr8taA8ZuUTkddbTGbTcHxFdb6OLCe/3xEz45lAB9 6+UvsiJNFu/rKkrtdsVHDWY1qLDJsGHddqrB6ZPWN+m9QEzrpZc7QS5IhcUIiIjQhCSf MXbJ/91y5G0ZMwoj63dujy2OiN+hmAmsgc+I3xAG6KSRn6htHvMe82Dm93h/JE9cdPv3 eH7W+73nqDjNOpepdxkYwRNRSMI+1YA2mECNRh80QEokH7n6RaU5H/ep6tuPSfDBzbYi 92RA== X-Gm-Message-State: AOAM532rOOLXUwMw5MeiZpE1rNCF5jr+YRsVJ+iXLvztVWP0ZTkmO4Nv X2PldhzQGnMHpaQBi8v8muJr8CSVavIYYeVsF3VLYbwYcUvb8RE7xxhtQyeUL4KMbmDWpvjsVS2 +WZkko6svFTZNqwqqr/P3 X-Received: by 2002:aa7:c38b:: with SMTP id k11mr4113127edq.79.1633979356727; Mon, 11 Oct 2021 12:09:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGboOz6J9azwkeciPdL9sKClCOiUS/XGJc/PjIe5OTL3dASYPSk/hflbIEKyA9zwBTklJK0A== X-Received: by 2002:aa7:c38b:: with SMTP id k11mr4113103edq.79.1633979356541; Mon, 11 Oct 2021 12:09:16 -0700 (PDT) Received: from redhat.com ([2.55.159.57]) by smtp.gmail.com with ESMTPSA id z4sm5250327edd.46.2021.10.11.12.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 12:09:15 -0700 (PDT) Date: Mon, 11 Oct 2021 15:09:09 -0400 From: "Michael S. Tsirkin" To: Andi Kleen Cc: Christoph Hellwig , 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 Subject: Re: [PATCH v5 12/16] PCI: Add pci_iomap_host_shared(), pci_iomap_host_shared_range() Message-ID: <20211011142956-mutt-send-email-mst@kernel.org> References: <20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009003711.1390019-13-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Mon, Oct 11, 2021 at 10:23:00AM -0700, Andi Kleen wrote: > > On 10/11/2021 12:58 AM, Christoph Hellwig wrote: > > Just as last time: This does not make any sense. ioremap is shared > > by definition. > > It's not necessarily shared with the host for confidential computing: for > example BIOS mappings definitely should not be shared, but they're using > ioremap today. That just needs to be fixed. > But if you have a better term please propose something. I tried to clarify > it with "shared_host", but I don't know a better term. > > > -Andi > 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. -- MST