Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5506944imd; Tue, 30 Oct 2018 19:49:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5dQQWtVr4q394aG3ghipiZZ6VuVoc8wakGiwCDqgHl7Zc5aE16b6Ypg/DfTzKVNtthLjMoo X-Received: by 2002:a63:1157:: with SMTP id 23mr1302693pgr.245.1540954162044; Tue, 30 Oct 2018 19:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540954162; cv=none; d=google.com; s=arc-20160816; b=ZmozJ+1AmxgrsTjgW7YwJED+RGoaDOc/V3Hq/2SVYu38ZckwhVu/h4/ZwQByWUv5tY dQkRWIQ370vU4VBQUdORGWvXA1iy8N1AdquMTs2xXt/36FYktOvvwhlkMpfzFRKp1fqe obPOaakt7oWNDrLE5CMgpaqcWBdkGN380fj+a8yjl5v4mzJqYKleh3LCxrbraxHRpn7D IBw4fFJ9AG33pL52QZPd6qRdIi300te0IjpMNI8helFdKSddkn3zZK4P1iIga6qWzBoA AIcpm/dwlacLxxQeiS71u8twKe5gLeHh+iMexsfn+XRO46zAc2jyt88kMlSVx5OPjK4F haFA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9zahIr5TxpFYdrWPUHC9IoEzYXliHA5MRyM+/Bq9gEw=; b=dh9jCkbuk9Pr4J5Sv6gpx/h6M6qzwB31Anh/eRZgCIFCAoXiF43/GGvDcbGs5HpISO aygZjlRRhVm9r4i8GnGUQXQmXaRQ8Zj/KYDyk0uIgwZDuwSV9mJOpbOI6sUXO1JYYfRO dXfKM4HTPU+lJKU0jCUTgCkBc9rjzf9f8rqEj1WSFZCD+0qTYJd+nhuJ8ICsqi6wr05n v1x03Y8KnxeJ9k6F7nae+zP3x6MS06HJpun0jnD3sZIvvVyObamn52Ls4oEtHWckn+6o yIuqz/LYdUhR6Kd6AfjI/Dv5AfilC2HZvFMz+6rDTSVwNLFS0RdvmanpHSfYMwpa+TFG KrmA== 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 e32-v6si12905909pge.546.2018.10.30.19.49.04; Tue, 30 Oct 2018 19:49:22 -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 S1728916AbeJaLoA (ORCPT + 99 others); Wed, 31 Oct 2018 07:44:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48830 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728141AbeJaLn7 (ORCPT ); Wed, 31 Oct 2018 07:43:59 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81B893082138; Wed, 31 Oct 2018 02:47:57 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-122.pek2.redhat.com [10.72.12.122]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 97E4C2A2E4; Wed, 31 Oct 2018 02:47:52 +0000 (UTC) Date: Wed, 31 Oct 2018 10:47:48 +0800 From: Dave Young To: lijiang Cc: Baoquan He , Borislav Petkov , Petr Tesarik , linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, mingo@redhat.com, tglx@linutronix.de, Kazuhito Hagio Subject: Re: [PATCH] kdump, vmcoreinfo: Export sme_me_mask value to vmcoreinfo Message-ID: <20181031024748.GA2058@dhcp-128-65.nay.redhat.com> References: <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> <20181030092314.GC14493@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 31 Oct 2018 02:47:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Kazu, the makedumpfile maintainer in cc. On 10/31/18 at 10:26am, lijiang wrote: > 在 2018年10月30日 17:23, Baoquan He 写道: > > > > 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. > > > Thank you, everyone. > > I personally agree with Baoquan's opinion. What do you think about? Boris and other reviewer? > > If the vmcoreinfo document is necessary, would you like to help me to provide an outline? > I can try my best to write the document. It is true like what Baoquan said, these information are mainly used by makedumpfile tool for creating a filtered vmcore. But these vmcoreinfo hide in a lot of different code paths: kernel/crash_core.c, printk code, arch code etc. It is a mist only a few kdump people know them, documenting them will help people to understand and review. It will also be clearer instead of digging into code? The document can briefly explain what is vmcoreinfo, why we need it, and some background info. Then list the exported values with some classifying by core kernel, arch related, string or number etc. For most of them like Baoquan said no need more explanation, but add explanations for something if needed like this sme mask. But I think this can be done separately instead of blocking this patch. Maybe Kazu knows more about it, so I would like to ask Kazu about his opinion and if he want to do it. > > Anyway, we should make a choice. > > Regards, > Lianbo > > > Personal opinion. > > > > Thanks > > Baoquan > > Thanks Dave