Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp174408rwi; Tue, 18 Oct 2022 16:00:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6H9X4ur15M0Kl5d7zR5+DUUQNhJKij9CQ2jMlBnVvEN90xMuigXD4iLdRSoDys8FqmgK2X X-Received: by 2002:a17:90a:930b:b0:20b:a5d:35d6 with SMTP id p11-20020a17090a930b00b0020b0a5d35d6mr41384938pjo.146.1666134054865; Tue, 18 Oct 2022 16:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666134054; cv=none; d=google.com; s=arc-20160816; b=FYHDYnr1nSGOw0Y6iF/L0jFafHVC7zVWfoHnbD4EJ0mq23m5m4na/xvRdE0I7pUBsj PCUFxnUKAUODu5rc19Tu9DMwDz26H9FDJAh2wlZ96828HI/yY+XBjOhCBMDArBdt5NOF Oa8brjzsHS+Mgf5wERApElL0ZDkdAHJ+IMlddJk6zAceYezcOamCvSOGaM3ZfMNEalL7 utXHDTfc+9nG26r9514soYxeIjIteTyYQlueuRrh3Sl7BZLfCWT0Kv+PhJWmepoUNm+q 3JLIB9o6bPxdnYXQRSinAS/qsW+w1CQxlmcvyvzbRthfxksKeRKGoLgTNWjaGPxuM1b5 fUlA== 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:dkim-signature; bh=X5o26AzaYbNeAR3WcHFDaCEQJwJRjb2doq9OC3w8sr0=; b=T+dq4wP5Uy5Jvfv3fs73Vph6QqgesN8IxKPpZUKTYwpB6NPTwDxLPapxH745PLJT5Z 1+cIrvSsPr4UDn70A1W6+S/mpDN6YUKLf4uKu+9F9GlJweuL7P0ffmMvNmR1UAaBjwUm nUL5kZH6GxuFb9r0AVh/TuXhjcJ8/jNUM2st8KONHkHVsnO6KUSTdmdEbFtsTWiSM/PT M0PC71+CLIzRRF5GSxLFKyX1P3kzUYr6z/NY/gCSjIrpEYQZBwMNHJGypvpbwzHvJtIE tzi+io24j0rhMX+ELVYBXLyvM3DjN+YVFE/UaAGTlukE4IG4OAKLUsE0M0nIbClWfw6K IYvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IAG9nqqi; 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 l14-20020a170903120e00b001823a7b6c7esi19097903plh.585.2022.10.18.16.00.39; Tue, 18 Oct 2022 16:00:54 -0700 (PDT) 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=IAG9nqqi; 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 S229911AbiJRWlv (ORCPT + 99 others); Tue, 18 Oct 2022 18:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbiJRWlu (ORCPT ); Tue, 18 Oct 2022 18:41:50 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D27AF1BE for ; Tue, 18 Oct 2022 15:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666132907; x=1697668907; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=43nga7sHlYGp/WXO1HBW7Mr8hHzUz0ck5JawD+SCfMg=; b=IAG9nqqi7IRLDZeCA/Fsl6+rMaMVVdxCDrbOxmvvNzGzyu+Kzv1kk5KA 01L0lbqAaJJGMcvD8kjGrL8TqMuHdnWe+4KBisj+MxJ8k5ROyFq854Ptd hLe/dndv1FZ37KqHmId8u/Sqf9vSh+0MWtGtb60DqWPkgTrUqM9Yhtqqz nTGUSM8rUCkUJX/zkwSU7+DkqkLdXc8uFiHnhxNk3sld6pjOpihDywaU4 TeE/EdxN0B0hg7C6OaFqtOIZRwNm9mgd+Ooi749JnTzWIqkV+cRCir1hG 1qVv9MOFBJ2vUClakpDLrY7eZjMkwnjlZECdlH2JFMxlBlAepyhRW8tj6 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="368305154" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="368305154" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 15:41:46 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="660032778" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="660032778" Received: from jjsopko-mobl.amr.corp.intel.com (HELO [10.213.163.40]) ([10.213.163.40]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 15:41:44 -0700 Message-ID: <35961c2f-08ab-9036-bc0c-6ede269ad3ec@intel.com> Date: Tue, 18 Oct 2022 15:41:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCHv10 09/15] x86: Expose untagging mask in /proc/$PID/arch_status Content-Language: en-US To: "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , x86@kernel.org, Kostya Serebryany , Andrey Ryabinin , Andrey Konovalov , Alexander Potapenko , Taras Madan , Dmitry Vyukov , "H . J . Lu" , Andi Kleen , Rick Edgecombe , Bharata B Rao , Jacob Pan , Ashok Raj , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20221018113358.7833-1-kirill.shutemov@linux.intel.com> <20221018113358.7833-10-kirill.shutemov@linux.intel.com> <20221018222419.oy2z2wanvwp2pnrm@box.shutemov.name> From: Dave Hansen In-Reply-To: <20221018222419.oy2z2wanvwp2pnrm@box.shutemov.name> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 10/18/22 15:24, Kirill A. Shutemov wrote: > On Tue, Oct 18, 2022 at 02:02:43PM -0700, Dave Hansen wrote: >> On 10/18/22 04:33, Kirill A. Shutemov wrote: >>> Add a line in /proc/$PID/arch_status to report untag_mask. It can be >>> used to find out LAM status of the process from the outside. It is >>> useful for debuggers. >> Considering that address masking is not x86-specific, it seems like this >> needs a better home (another file in /proc). > In generic /proc/$PID/status? Seems like a sane place to me. > And I'm not sure if it is a good idea at this stage. Semantics around tags > is not settled across architectures: somewhere it is per-thread, somewhere > per-process, somewhere it is global. > > Maybe keep it arch-specific? Yeah, but all of those things could be served by a thread-specific ABI. The per-thread ABI won't enumerate the scope of the thing, of course. But, it _can_ precisely communicate what semantics the thread has.