Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4467765imd; Tue, 30 Oct 2018 02:24:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5ecEi85Ke70t6dsrB51YpiJbEM5NNft+We/CFTIbsNTFeUUFWPWyhYJU8v7Ii/0o//qqxAp X-Received: by 2002:a17:902:d207:: with SMTP id t7-v6mr17892257ply.90.1540891456381; Tue, 30 Oct 2018 02:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540891456; cv=none; d=google.com; s=arc-20160816; b=UMdiXH+3578bhoj2dcT4VOdAhq0cB/yIL79ykwOqLkDGlBBZG3K/TL3fFURyW+Anap Iv7AwGLCTHvRcrxuklBzokdWJcboxcXtMRJxk8U40qfYbIjmLk2H+gnFOr3G8WFGTDFn BtwADq8exoAivh42oQXKsf1Xb043y3uki/1tzZ9+NKuYzo7EmX6e9mBMNcYjk465GdRl RZMmBxklfwsfeSi0jbuRtDiCCWsS5pLleqZVQHh227KQcAs+g23XKVn7G855oMYsDyIY r/9PmidhCGnZTGPgKoMPT0iLIKBCQ47EmIjUwBjbATBLcZKlJe+h3RVOUHFhk7qvXNvC cBwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=q4y9X0vAG5kCOPmx9wZSeps6OdemckbZzetH3eIH68w=; b=TOStcrzIwLt2FDAYfzm9ZTUwSU08H1FJ0P74PB7hMZOWyYgME6qT8DdBJUpypWh95g JyVOWxT142lrg1SxPngyK1573KdeNcxM663QmHWcwrG+u/e+tze+k5eUxN+619C/5AxU liy8+tjNwEbcYIXa62nMbPG62txGJ58SQ2mYFDhJux7nn+zl4DtVwQwhspYe+09Aon7f YAu5sKl4wz/9x1h151Z+sDMKxAAZ/pohug2zLoSON7/y+x1U/HhKLWzPMAFtwKAkPvgl gblkvqkdApnEbjfN/NGOJSGi95jzlMeiWujCAoaxlOkHfDdwSML/HLwRxgEzOj0naEU5 k+YQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19-v6si23981076pgj.442.2018.10.30.02.24.00; Tue, 30 Oct 2018 02:24:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726840AbeJ3SP7 (ORCPT + 99 others); Tue, 30 Oct 2018 14:15:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46512 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbeJ3SP7 (ORCPT ); Tue, 30 Oct 2018 14:15:59 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D7FE5C049598; Tue, 30 Oct 2018 09:23:20 +0000 (UTC) Received: from localhost (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 824321054FCF; Tue, 30 Oct 2018 09:23:17 +0000 (UTC) Date: Tue, 30 Oct 2018 17:23:14 +0800 From: Baoquan He To: Borislav Petkov , Dave Young , lijiang Cc: Petr Tesarik , linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, mingo@redhat.com, tglx@linutronix.de Subject: Re: [PATCH] kdump, vmcoreinfo: Export sme_me_mask value to vmcoreinfo Message-ID: <20181030092314.GC14493@MiWiFi-R3L-srv> References: <20181029083118.GC1884@MiWiFi-R3L-srv> <20181029095738.GB20101@zn.tnic> <15897206-c1a6-ced6-3a1b-f71da8fc9c83@redhat.com> <20181029114414.GA11408@MiWiFi-R3L-srv> <90385882-7fd1-a674-ec5a-19bd42471a5e@redhat.com> <20181029134918.GB32150@zn.tnic> <699ab34e-1373-582d-4e58-e76bd57ec34f@redhat.com> <20181030050900.GA25987@dhcp-128-65.nay.redhat.com> <20181030091542.GD32102@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181030091542.GD32102@zn.tnic> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 30 Oct 2018 09:23:20 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, DaveY and Lianbo, On 10/30/18 at 10:15am, Borislav Petkov wrote: > On Tue, Oct 30, 2018 at 01:09:00PM +0800, Dave Young wrote: > > It is not the content, I think it is a good catch from Boris, it would > > be good to document the exported things in somewhere eg. > > Documentation/kdump/vmcoreinfo.txt For the vmcoreinfo variables document, I personally think it might be not necessary. The reason is that all the old varialbles are exported with the name of themselves. We know what they are or what they represent since they are all kernel symbols or macro. Only this me_mask, it's a local variable and store the value of sme_me_mask for now, may store more info later like Petr mentioned, and also will store the memory encryption information of TME (which is intel's transparent memory encryption). We can add code comment around to tell these. Personal opinion. Thanks Baoquan