Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp546563ima; Fri, 26 Oct 2018 02:39:15 -0700 (PDT) X-Google-Smtp-Source: AJdET5dn2//zto3Ab+IDRsCHNxz9uQikv26ayjmusZ2DqkhR8HuEDkNZtw1e36lEmnGJgDm+/D18 X-Received: by 2002:a63:36c8:: with SMTP id d191-v6mr2722941pga.404.1540546755447; Fri, 26 Oct 2018 02:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540546755; cv=none; d=google.com; s=arc-20160816; b=ayXH01p/kTHLIcBK0fmN6oz4siALaD/8+ms2zzVwijx6FV4g7e9hDFawcr+G44t+I4 aMAiQSOCspWAJe4c9ekT2R5khAqNFr6gFc+gkRLJTVG1KyFxwZVF5TS/bQGtmqlVCTCs cPFH/IWtyF6QjugdnW7XvJqDoaPYZ949SmkfQ62xtk91JIhx5HLDWKnYmcHLecpp1mBN OKC14o4c7Cq9ho7C5HN02kAvWNVRXmcvnQwf/8bHl3NFOgjCwdJxxcrk04Cs8OJEGQXG nSFQV9XVOnLrd7nvKIEHGB08Kb0YG3YAk6baSQNG33OUF03EUMyTQXbE/W+0jvR5AAO4 vBqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=mMmiZZqI30jqd/mbnqL1W3MvoEepvVwzpm20jsCR/t4=; b=s6OJwZfow6DwFp1YA7HD34p/PO0JcXDwPxLolcU2VcNki1Qq286aAmYha2QXof71pp XcTjP2D6KPkMas5QMR0YtmVPacNhRK87d3KCt4j2Dy3zn5a5y++7MHsLhqB0C3nKT1d4 W+h2VVTFPknbQdG5vrXEw0k9QSiCD3sBfl1d6tERfFf0DlMYmTx6t0z5NTwPR4yLu52h h0Wyc71sTYSoLUu3SnHn6TmtPxKCmgMpfwKLN0PL4ZuKj7EEeTuYLe330o6aXmJ0QNoa ED6mbAQ3SAOOahmoAF3ucMAkDvCXBfRPFHRtzu2f/C/YOupXJhv7SV+nmTMCWl1Xuu6n lfGg== 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 o13-v6si10573141pgh.61.2018.10.26.02.38.58; Fri, 26 Oct 2018 02:39:15 -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 S1727150AbeJZSNU (ORCPT + 99 others); Fri, 26 Oct 2018 14:13:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbeJZSNU (ORCPT ); Fri, 26 Oct 2018 14:13:20 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DA0B3C0B021C; Fri, 26 Oct 2018 09:36:58 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-142.pek2.redhat.com [10.72.12.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id DB98526DF7; Fri, 26 Oct 2018 09:36:34 +0000 (UTC) From: Lianbo Jiang To: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, bhe@redhat.com, dyoung@redhat.com Subject: [PATCH] kdump, vmcoreinfo: Export sme_me_mask value to vmcoreinfo Date: Fri, 26 Oct 2018 17:36:30 +0800 Message-Id: <20181026093630.8520-1-lijiang@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 26 Oct 2018 09:36:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For AMD machine with SME feature, makedumpfile tools need to know whether the crash kernel was encrypted or not. So it is necessary to write the sme_me_mask to vmcoreinfo. Signed-off-by: Lianbo Jiang --- arch/x86/kernel/machine_kexec_64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index 4c8acdfdc5a7..dcfdb64d1097 100644 --- a/arch/x86/kernel/machine_kexec_64.c +++ b/arch/x86/kernel/machine_kexec_64.c @@ -357,6 +357,8 @@ void arch_crash_save_vmcoreinfo(void) vmcoreinfo_append_str("NUMBER(pgtable_l5_enabled)=%d\n", pgtable_l5_enabled()); + VMCOREINFO_NUMBER(sme_me_mask); + #ifdef CONFIG_NUMA VMCOREINFO_SYMBOL(node_data); VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); -- 2.17.1