Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2665653imu; Mon, 17 Dec 2018 06:00:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/XN6Y4RAOnLf82jZ/vVXg6BpcqzAwRK2e7wg94H7XZS78wkiVx3uA+BWvJEAUz9Vln2zp6e X-Received: by 2002:a17:902:8c98:: with SMTP id t24mr12791902plo.130.1545055207305; Mon, 17 Dec 2018 06:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545055207; cv=none; d=google.com; s=arc-20160816; b=QBI54rp46Pd/fl5gla8nXld0Lvp/jrO7ave6S4iNF3GW7KUgyq8Aq+jnB8dCve7nXD kGf35vzv16Q6WF0Th+NBXl8Dtcqn0Zx+QhSw1MTWDmYCY0kQTyXq2BqYMLG+TudbeLAI jxsBs+uGT8EnKH/MkSRrOvAJww84zKgqbJwfrmH5OcqG6MUzHViGH5qmhk5XCbHa+0fJ U+V2+juprJmr8VUB/No4iU1kyaeC5RtKaw9Dse7rn45l6rh32VCfpjPbVLkA9MPhfy7S kFdeDaQVjaMPAVqxDSiG7kBDxFDbrv1el8YB7skPZi3CHQqCwcZtc/gpymxMJIFut5Mi IP4w== 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:dkim-signature; bh=Ov+79jOoilajc+Zs773s5jUTIblEM8XXhPUIAQ50G3U=; b=e7z9D6JSwcGlkA6XLKDeA4ZpyUDjb4IIOMNcqeAGQ2+ZwATqk75QkJpzysznIAV+gR 5Yb9uGMepBLRHSm7bPVIqp0awyXbzOeOkyrv0uLwHU5vUdq7MsIn56OzEW37UFHxe9nE 6ITawpKygRXgTccuLLdpiqRUZ0QOFpvCDmpUpTFhmpc1QF56aVV+709WB8c2rCafpoXS sPX0b1flG6g6/njcylo4SZj01VvoFoL4RlQAbJL8MABvnlOX9w9NLqPcbU3e3Eyrs8HD k0yNH+Sk7c57eaxup7qAnAHXI04qsHeGP4JmhOvv32YrVqdh4rEORTF5PhS+AD4jtDFv QvOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BsEaL+HP; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si11112879pla.412.2018.12.17.05.59.51; Mon, 17 Dec 2018 06:00:07 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=BsEaL+HP; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732472AbeLQLyn (ORCPT + 99 others); Mon, 17 Dec 2018 06:54:43 -0500 Received: from mail.skyhub.de ([5.9.137.197]:51450 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbeLQLyn (ORCPT ); Mon, 17 Dec 2018 06:54:43 -0500 Received: from zn.tnic (p200300EC2BC8CE0001731E093D136BFD.dip0.t-ipconnect.de [IPv6:2003:ec:2bc8:ce00:173:1e09:3d13:6bfd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 261091EC023A; Mon, 17 Dec 2018 12:54:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1545047680; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Ov+79jOoilajc+Zs773s5jUTIblEM8XXhPUIAQ50G3U=; b=BsEaL+HPTSn9GogZJIjgxjD761yQg8wVCJeQmO2fa0mGHzfcBIJ75g0iDKJs6rzT6kSWhc zjBNhgEOtvPqkBXm8DF2aNAYBLreio0J23fXeCiAAx0VlWTINTBzvZ8Hj8zWtkWyBP5yfO +dMn0uoN9QUE3EXW+A+P8cMYK3aRpX4= Date: Mon, 17 Dec 2018 12:54:38 +0100 From: Borislav Petkov To: Lianbo Jiang Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, akpm@linux-foundation.org, bhe@redhat.com, dyoung@redhat.com, linux-doc@vger.kernel.org Subject: Re: [PATCH 0/2 v3] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo Message-ID: <20181217115438.GB12165@zn.tnic> References: <20181216131617.2612-1-lijiang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181216131617.2612-1-lijiang@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 16, 2018 at 09:16:15PM +0800, 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 would normalize the > exported variable as a standard ABI 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. Yes, it is starting to look better. The last thing that's missing is a checkpatch.pl check which verifies whether a new VMCOREINFO export is not being documented and warn if so. But you can do that later. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.