Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp380513pxm; Tue, 1 Mar 2022 23:47:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDjTZtQcrsjIsdpYtqdnu+SFX9pIW6c/wdpoC9o0h/BEmsroPsBPiqj1taygE/3d+/FZJK X-Received: by 2002:aa7:cad3:0:b0:410:b188:a49a with SMTP id l19-20020aa7cad3000000b00410b188a49amr28232265edt.416.1646207232466; Tue, 01 Mar 2022 23:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646207232; cv=none; d=google.com; s=arc-20160816; b=b/wNvvP02Vm6vykADe1ogfQHxaFTZjqc9VZZz0SpWV1u9eW+n/5M6IlApK6EOLZGM+ RS/Z9iwsIvOeAlmJuFJqUeemJw1OlL1zxrXKP/I4QBsKI05EF2gQ3z6TSyp/0gzGWGRv vJaPwEk5h5QWgr8o2p1SqLOIVaC7yBRSUlsPLAm1ELF7quSPls2ho8FxezKC0XdJRMxZ 4+rG3d1BT3lSBRbyJKpsvcB+iOy9PGLZIoLJGsCj2swo5WuqBaMj97QXGf23y0my4CuM vOc9T4MN1Jdl2iYFQz6HgiZ9gJzvamOZiwI+e3Cf2Waps564Fu3yCyfr2xyX70BC+V5B +75w== 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=0uEk7y0REoEEKcdQl56Pd9Gz/ecuAqS/KmyHkFIq9M4=; b=UxFk8gDuF+fGGjv3IdTRtePyj2ol/sGPuDnG5SejlKaE+D1TabqwUhDLD/+J5AOOXv BkrOtOjCNOsWy5vixTvVY6glbye6udmIihYbeW3L21P2a229Tvl/3yApRKe1gUWLuQEF lwNguYPMvjKxPa3OqNlXCP3bTN6uWuHKzSgKp1FCsxJIoN1oRnVXIWjLzJSYMAvov/EN VB3I+/ST4Ubay7O1P2WUZCe0juBG2x/+Volea+z0g0ND8iWoYHxAtBYIkNRfRu4EM2YI rRrZEVWvEEQsla2FFLv73btGcPzruow/QgDpVbxwASZxgOaiFU+T/eHieGWedUsxpfhV vvMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=i63prrEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a509545000000b004131c5d0885si9374657eda.466.2022.03.01.23.46.49; Tue, 01 Mar 2022 23:47:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=i63prrEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235798AbiCATwl (ORCPT + 99 others); Tue, 1 Mar 2022 14:52:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235422AbiCATwi (ORCPT ); Tue, 1 Mar 2022 14:52:38 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26CB6E546 for ; Tue, 1 Mar 2022 11:51:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646164305; x=1677700305; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=R+3NrUlf9Wkgu+Vf7MKNPaVPzoo3R7L3C1fJJ7wyPj0=; b=i63prrElQ1lMNYZDzLUjEwMYvLSmFZ73oz9j/EEFkD8Tt2WQdu/YHuXs u8c9isZA8YUdt1KigV6kLvQRe7/wDkgMCJNVZD7+3vQHEDqMlU1nzYThq UBX+dJ+p8cq07KZ565QkevEtftB2roAbshJm7ycplhi+pGE1Adub+b4Fn dxA3U7EZtty/zZoQq0zvoZSQfPWuwJ/3C4O1zZ7GrCAbKxoNBc702YDQo PKV8rON72iHBNkD8UU8O5VFC4GulzJ0ZcrFcFW+YvhVT+j2JSFaaaj/qM ngM7NxdgLo1+BBGtwSc9kK18EfasK1FMe9pUCUjqMyxm8vMiGUB1r77GE Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="252052872" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="252052872" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 11:50:41 -0800 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="545217614" Received: from bklinvil-mobl.amr.corp.intel.com (HELO localhost) ([10.212.48.220]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 11:50:41 -0800 Date: Tue, 1 Mar 2022 11:50:41 -0800 From: Ira Weiny To: Dan Williams Cc: Dave Hansen , "H. Peter Anvin" , Fenghua Yu , Rick Edgecombe , Linux Kernel Mailing List Subject: Re: [PATCH V8 41/44] kmap: Ensure kmap works for devmap pages Message-ID: References: <20220127175505.851391-1-ira.weiny@intel.com> <20220127175505.851391-42-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 01, 2022 at 11:45:41AM -0800, Ira Weiny wrote: > On Fri, Feb 04, 2022 at 01:07:10PM -0800, Dan Williams wrote: > > On Thu, Jan 27, 2022 at 9:55 AM wrote: > > > > > > From: Ira Weiny > > > > > > > > > Co-opt the kmap_{local_page,atomic}() to mediate access to PKS protected > > > pages via the devmap facility. kmap_{local_page,atomic}() are both > > > thread local mappings so they work well with the thread specific > > > protections available. > > > > > > kmap(), on the other hand, allows for global mappings to be established, > > > Which is incompatible with the underlying PKS facility. > > > > Why is kmap incompatible with PKS? I know why, but this is a claim > > without evidence. If you documented that in a previous patch, there's > > no harm and copying and pasting into this one. A future git log user > > will thank you for not making them go to lore to try to find the one > > patch with the details. > > Good point. > FWIW, I just noticed the previous paragraph mentioned the PKS protections were thread local. I'll still reiterate and clarify here. Ira