Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1748707pxb; Mon, 11 Oct 2021 12:13:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLH/YKxKEFXmKzA7KtAIGuMTavL7cJrwqWpDuoa8M2UcMNxt3feQhXgMTjEb51RYtmEhdK X-Received: by 2002:a17:906:f41:: with SMTP id h1mr21903475ejj.255.1633979617517; Mon, 11 Oct 2021 12:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633979617; cv=none; d=google.com; s=arc-20160816; b=dnAzPpYoNGSnPVtCps5VOU9oGK3Y2HmWdOgvVUFmZTk4zsKKTJOti6D37wjKyy0+DQ jFfre0zhMhdSUg20q2GR3CmWALB8wD7wnQpRy2Zj0hvIWnQWMoEj7+nSs6xn4fpKZ9V9 EYce6d51qFry9VATHifFx6Y8V9Y+KrlcY+9mtu8mAmM9NECmR0IuZ/6F5f0QSUn9OU9q t/f/UJ7JM4idBGAi5z0ZEr8qIcQAjBMjENSE9TNeg8sZibs5WYoo62siV3dcxFMqPrSJ LWJyQ5N4Qz/SSaNfNET0tve3zcx/9GNka5lS2v3OMp36iZ9vK9KtNFFMQEiYJGQJ0jDG wA3g== 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=oZEQAOmKk6R+KRX2BzvVHC2H3CodKlCG/yzYUUC2zJA=; b=MpNV+Oh6C8Tn1FNPMySMYdGe5ti1W8rip51iczXfO0FOgNEeAY6h2rsoFLD9Kd9srE CLiiYZHsENkxEHsRDxH+7qIK/rq0J1YC/rHgE4xDpw81pZM8ukmtYx6nqy6CM7MmPfKf N2AiDA02NBQk49DHkAJKVxnFNb+eLSfXmhEGg3RcnGE56vAw3+TkLK57s/37ZqgqPfa+ N7Z4uYw4GR6hwZsrOWSf0VWWs4yCHBnnmmJXweQX1CiYTIa/J8Pj7aDZk7fHmDlOJ664 8CodBji7LhYWdW7mVZ/EZrayy2sD3eIDxrXOLK0wEwVq/DLxmnREyTrXeA/tEsKdVTm0 Poyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a7Ix2tj+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si12884461ejm.167.2021.10.11.12.13.13; Mon, 11 Oct 2021 12:13:37 -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=@redhat.com header.s=mimecast20190719 header.b=a7Ix2tj+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234563AbhJKTLX (ORCPT + 99 others); Mon, 11 Oct 2021 15:11:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:56178 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234446AbhJKTLV (ORCPT ); Mon, 11 Oct 2021 15:11:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633979361; 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=a7Ix2tj+cJk7MioFWbyC2cYsfmO0DEhh+HtTkhdJnMKRUP0snF2nVBuMz4rwe2+pZHDZnQ DHMphZ77gaq3cnvLBorFHT6c3O2eYo8LEhtypAC1rxKCywwsX6V1D41QSHKc7HDSmTFZB/ ADr2qWj8fIFCsk7H0wsLd8t7Es60FR4= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-126-8GrW4kUZNBeeXEQdzKnSSA-1; Mon, 11 Oct 2021 15:09:17 -0400 X-MC-Unique: 8GrW4kUZNBeeXEQdzKnSSA-1 Received: by mail-ed1-f71.google.com with SMTP id p20-20020a50cd94000000b003db23619472so16737812edi.19 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=4VSatlr8vSX87FHr2FchqyLiGKjOljrIj4rc1btnhUr9Wlhk/dJv7/41zkfvNMZppQ ptZPJiqLjv6MKTfaC/HjFRx/jPNewfoMOs+Mtt93Ko3siauIabNTqT9zqF8HkE5aBXeZ rmXsfS4y40jjWofGq4bZmi9COE1pO99iVfhbDK3odV1Lv+qda+A5SM9J0CBxigVG8YnH 2iMqfg6Lke3Kzj9369rkVzJyDCSFMrYe/RwuMXHLhWS8BLcDKFrPcIPVVLvl2Zp1Ow8s TaFuimi7zwshyXG+ijlyMlN632WjGMCqfyTK70D6oFpcBVlYFlGdxRRW3b5YMzFSFKto eqAQ== X-Gm-Message-State: AOAM533LR6hy7f6Bb5XGZBCbf8fkK6Nc07R4ffrSeOP7JUD5t7FF61kx tZ38eCSdaALsFPmvnAtgqqM1gtaTEy0l0BxeGD3IVRM/rYT8n/BfcUHEtVrDgghtTdcw97gynkZ EAk+zxAX3cwoHj66fQHlABeUh X-Received: by 2002:aa7:c38b:: with SMTP id k11mr4113131edq.79.1633979356727; Mon, 11 Oct 2021 12:09:16 -0700 (PDT) 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-kernel@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