Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5168443imu; Tue, 25 Dec 2018 20:00:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/UeRPaCKQ8FF7RJC2sATdSMusagShY7HR9xmA/9wK0kz0dCZ+ZLr7Z3HmceEepPPvmqgF1g X-Received: by 2002:a62:9719:: with SMTP id n25mr19341885pfe.240.1545796851474; Tue, 25 Dec 2018 20:00:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545796851; cv=none; d=google.com; s=arc-20160816; b=GM8pgFPmmZX4gnvHc8ucuWBgjgzmEz4lfztfE1BMLA2lVyhRZ3hRekxQWx1JdenOrx AH8OjY+czqlEs68iULQ7lr820sXdHG9VpMGJulytdDQZ6LVGU9lGMwduPVnNQUd+u6wc ELHWpXhfnz94cMixSYEvTcTdRgN5yhL2qcpoOaqp3GywhvDhYrTwUZMJVQUkheFIfvNz /TGbElkpuWsN4vZgxdPP0Rmja89SzVfLQkU0F7wuXeGWkwzCeXPLTBfpzBba+IQPA4Ce cxwZqPMWzYJOLLcut7FTTdBWi8T+n1gpVWXv8nJmD174GeYu4bzkGfZkXtVylgLt1lUH A3tg== 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=xZGUaqSNyw0vBAGQQzxaoD9KBpYUwUEPiXm237ePjvs=; b=bOqoNKnm1RrQ+che5QtyJ+rAvIgSnGd/MU2I+YjeZY4TVe/eHHwjq2MFKpNFRuFzSE Ze8cGKQ5u9CJROazdKZ+QuaLcrZqvNzZZZm2l2QjgLa/Nrsqlt44phJnxR5qPgD5Pj/W 7MTE0UpZtPqoNlUAqC9JHKl4yAr+gE5x+jV3ymyZzH3RuoqztWrELKPMmcZoZEqEfrOd 51CeHpdds9tnbJ1Ey5iX62URxVCQmvfyk8MHmhlUUqiYPUoaaOKuGGU4P4xpK0jRV4F1 vYIN6I2F1BI7k4nDimE45LbDJGNURbtcKtFnGnyTiEEbJyXf8flAZR/2KETWL+GkCdBY Re/Q== 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 k22si27576235pgl.29.2018.12.25.20.00.36; Tue, 25 Dec 2018 20:00:51 -0800 (PST) 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 S1725924AbeLZDd7 (ORCPT + 99 others); Tue, 25 Dec 2018 22:33:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56634 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbeLZDd6 (ORCPT ); Tue, 25 Dec 2018 22:33:58 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 59988C03347E; Wed, 26 Dec 2018 03:33:58 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-157.pek2.redhat.com [10.72.12.157]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9DB9D5C219; Wed, 26 Dec 2018 03:33:53 +0000 (UTC) Date: Wed, 26 Dec 2018 11:33:49 +0800 From: Dave Young To: Lianbo Jiang Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, akpm@linux-foundation.org, bhe@redhat.com, linux-doc@vger.kernel.org, Kazuhito Hagio , anderson@redhat.com Subject: Re: [PATCH 0/2 v4] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo Message-ID: <20181226033349.GA13822@dhcp-128-65.nay.redhat.com> References: <20181220054044.30738-1-lijiang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181220054044.30738-1-lijiang@redhat.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 26 Dec 2018 03:33:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Kazu and Dave in cc On 12/20/18 at 01:40pm, Lianbo Jiang wrote: > This patchset did two things: > a. add a new document for vmcoreinfo > > This document lists some variables that export to vmcoreinfo, and briefly > describles what these variables indicate. It should be instructive for > many people who do not know the vmcoreinfo, and it also normalizes the > exported variable as a convention between kernel and use-space. > > b. export the value of sme mask to vmcoreinfo > > For AMD machine with SME feature, makedumpfile tools need to know whether > the crash kernel was encrypted or not. If SME is enabled in the first > kernel, the crash kernel's page table(pgd/pud/pmd/pte) contains the > memory encryption mask, so need to remove the sme mask to obtain the true > physical address. > > Changes since v1: > 1. No need to export a kernel-internal mask to userspace, so copy the > value of sme_me_mask to a local variable 'sme_mask' and write the value > of sme_mask to vmcoreinfo. > 2. Add comment for the code. > 3. Improve the patch log. > 4. Add the vmcoreinfo documentation. > > Changes since v2: > 1. Improve the vmcoreinfo document, add more descripts for these > variables exported. > 2. Fix spelling errors in the document. > > Changes since v3: > 1. Still improve the vmcoreinfo document, and make it become more > clear and easy to read. > 2. Move sme_mask comments in the code to the vmcoreinfo document. > 3. Improve patch log. > > Lianbo Jiang (2): > kdump: add the vmcoreinfo documentation > kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo > > Documentation/kdump/vmcoreinfo.txt | 513 +++++++++++++++++++++++++++++ > arch/x86/kernel/machine_kexec_64.c | 3 + > 2 files changed, 516 insertions(+) > create mode 100644 Documentation/kdump/vmcoreinfo.txt > > -- > 2.17.1 >