Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp151152rwi; Tue, 18 Oct 2022 15:35:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM77CBT5suODA+nnxVxkV0XWh0xqpVdDlYYK5lMDNuWqYqmbOR5TFt+WW7x+99Ph1Jbnkp5L X-Received: by 2002:a05:6402:51d0:b0:45d:5ba4:c3d2 with SMTP id r16-20020a05640251d000b0045d5ba4c3d2mr4653368edd.132.1666132523543; Tue, 18 Oct 2022 15:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666132523; cv=none; d=google.com; s=arc-20160816; b=RRBk8RXvi8/WCusnRQLPQlBlxNDEaqrfUMjMsXY8RYmp8LBQtItQhhxFb494m1E/YP jeO3BtdpPVWJj1DDZk1AT9qR1jnN5bfHEnjOGltkMGOEEefvEbLhcUzXJwtcHz1B7wjQ 5EoQEjrwiTvEL0bpmWK2pG5lnG0H0Gw7LsGvZ9WNMNWQr+NkyabvcPIJs/EU4SonraRO p3aUpULlQHeCkC9RswhgBq2xvUhL/yrAAmOMng/hmbqY6SIFtfICKiqPmm6wuubAW+tr vPdILWWVJ9g5maMuNwSkyTXBCsxrrmndYB1NVT7J8m/2st1hXJXWkSA8E+GVEnoKcnAM jYqA== 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=vHXXYibUINwIgQR0oiJA5Nrm93TCSdVW+EvhjRUguyE=; b=OJfu/e8r4U7xMExLJ6dC91K0rExZiWlZc6XK4x4K/u2NV2W5uv8MSRxMcY1ahvcCDJ Bh1ooQBVKlu4xkDRvEPjmbOh73M+L0xbDmSuXptltpw4AwC17+kHzoBzjtWWAAZ053bh SKRWpFnJ4ReCQrfIWQsn14Lbg/xuZvZ3S4SuN2lyaqWgL+o2EM4Y2/o2LW2bdB82M0JV ApJw+tkX/DCQI4wjx6cm77+gmekgePyOAjTZ47abEEiBrAAjODmHUUZqWfFl0pZhzBOk XGGheDWeolBUsI2eUwwZyviiX/5TqtkbXuTYUDioXyAUggpywb9cAf4Lf3CFUrhZWdyK jX6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=crqOCkax; 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 m7-20020a056402510700b0045935adb5b1si14416135edd.395.2022.10.18.15.34.53; Tue, 18 Oct 2022 15:35:23 -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=crqOCkax; 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 S229727AbiJRWYl (ORCPT + 99 others); Tue, 18 Oct 2022 18:24:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbiJRWYi (ORCPT ); Tue, 18 Oct 2022 18:24:38 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3D15A44C for ; Tue, 18 Oct 2022 15:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666131866; x=1697667866; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zfnC/cOJ9Zth74hPYMkAxky3j1dK9CbeXG7pkaQrPBY=; b=crqOCkax6zYkviKF/Tu6JmRmKIuDCKlznvYQSbL9CiEurxjOrb4I/5vv DySZoOQnVxDlfo5GjYWOAv3sHJtcFFyLI9Ny6oRa5e8cdWwEblZ6bVjyY 8HEJQ7nS1dvsRhRgsoKl8O9MKpk3kKGqFNS8HlS08WwZ1modlV/MpDASo 7g8SHZFFkqDNr5Wd7dngHkSzx6ChjT7Tf20eft6+/mwfP67j66+k9TuKQ +KJVrrY22KKwwnZUbbV1Vkwiu7TL/gABf4tLgjrqOT0T+y6FxEth27N/R ukxvs1xdsCVcJB/2gcOpIz4TRcHvhfxsz6QXVHY9hZyhR+wR/Hp10kb0K g==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="392551472" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="392551472" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 15:24:25 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="771446900" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="771446900" Received: from vhavel-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.51.115]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 15:24:21 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 2F785104BA9; Wed, 19 Oct 2022 01:24:19 +0300 (+03) Date: Wed, 19 Oct 2022 01:24:19 +0300 From: "Kirill A. Shutemov" To: Dave Hansen 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 Subject: Re: [PATCHv10 09/15] x86: Expose untagging mask in /proc/$PID/arch_status Message-ID: <20221018222419.oy2z2wanvwp2pnrm@box.shutemov.name> References: <20221018113358.7833-1-kirill.shutemov@linux.intel.com> <20221018113358.7833-10-kirill.shutemov@linux.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.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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 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? 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? > This could even be left out of the series for now, right? Nothing, > including the selftests, depends on it. GDB folks wanted to know the mask. -- Kiryl Shutsemau / Kirill A. Shutemov