Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp72786rwi; Tue, 18 Oct 2022 14:17:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/vx4ROOtAfbMPt4/It+xn+PS6PiW8fnSIFkjJj/As4CN295xa+oBjY3zlk7ViHvXARGoz X-Received: by 2002:a17:907:9603:b0:742:9ed3:3af2 with SMTP id gb3-20020a170907960300b007429ed33af2mr4066195ejc.510.1666127863983; Tue, 18 Oct 2022 14:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666127863; cv=none; d=google.com; s=arc-20160816; b=koHrPlCOWVfB/TfJjP6Yq30WAQIP3cWbIicjsrxmxiHIM7HfAh+iP4kfqUJ40H95Th duL35kTwgO3LnuEwHEnkK/cMDx3NwZ/9AnkeJK6lYX1zKPRmU3+B5T3iT15yNB06DDrF OH0D/OCvvExCTBmPIa7jxv/W0oe9Apk5KSMdBoFASuuimcmwzMCjrAxvEEsiXM4O2z3O IKdXU4idV5lq9v0VGrkchjvAutnP77lAipjGoBzJYBG8kfVGv83Ys2+GEflIulX5MJpp AN6FWhe5Qkenk29gZrs/oJOPT6VHN1ZUh46DJLWWmwbDmkUQG8TZtWpmYlUbylTRSjaS EPlQ== 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=+4InNMuTBeW/d1W3nfxjFj4AYqy2yLyIxLppJvXjSHo=; b=em2qgMAdez25yPJdB8dlMjmxRd/qnFwUSwL+3zbvNNMo/e59amoyPbwW++aBDlsE5+ jxB6EEodwB+wbL9E/b2VYIuMdCp15xMPYMjcqKu2Ps18c63l9PvmuGA7F72xOFcXsGn/ HEsqdHr6UmBZRk6n5x1DlnS+k/h0GVXC0BgIJE0xAaDc+lkHE01NdG5Mcf+RFpkbqvRd g0lh31zorb3mgVJv15+9LxS1dheNVImCC//xKf0wZ2adCn8R2zs4y0q9E22DrTg2rpJP tzWaY0bZozLr8xhjmZqD+OUIM+yYeq6QQOnE9bImIb3RWgModwMqwoED4q9tvbmU1V9+ Abtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VDnNTv+6; 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 i8-20020a05640242c800b0045731196587si14000338edc.64.2022.10.18.14.17.18; Tue, 18 Oct 2022 14:17:43 -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=VDnNTv+6; 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 S230252AbiJRVDH (ORCPT + 99 others); Tue, 18 Oct 2022 17:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbiJRVDF (ORCPT ); Tue, 18 Oct 2022 17:03:05 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5153BC4587 for ; Tue, 18 Oct 2022 14:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666126973; x=1697662973; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=HaNZmq41zK29iOnkJK28GdD5R+VHcXlZCvrP5NcvQyo=; b=VDnNTv+6K7/mM81eb0AkSO8eZ+eNSDa4KNZFSrmCWpoAncWRfZVpD4eG u9Jk+MrQCge1rufRo+w5KVemKaHAyBlpBuqhb4rdlBR6hxxek0+66i5fW PtpFmxqAGggF678MMTE/cIuz+Ti1HTpCJPRtZFm9pdMhFocf/V+O+DWNg vZiGR4ojlr+RghVrsIaaVl+UzH284rd3KpylReh8IydfrUM782Ji1gKT9 MYJiVm/E/EYnhP6HGUWFECj6ieFrQcEKnaZGqw/a7xCWzuFMHzT40uNHT ntJbPjnHC57eilYYsVA+BK+LIBWT21t62p3nfJxoLzK2d1yth8pH8tcC8 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="307343803" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="307343803" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 14:02:45 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="631323993" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="631323993" Received: from jjsopko-mobl.amr.corp.intel.com (HELO [10.213.163.40]) ([10.213.163.40]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 14:02:44 -0700 Message-ID: Date: Tue, 18 Oct 2022 14:02: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" , Dave Hansen , Andy Lutomirski , Peter Zijlstra Cc: 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> From: Dave Hansen In-Reply-To: <20221018113358.7833-10-kirill.shutemov@linux.intel.com> 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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 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). This could even be left out of the series for now, right? Nothing, including the selftests, depends on it.