Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3275011imd; Mon, 29 Oct 2018 04:45:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5cEHOJ3Com8KBfwa+9qVQJwY2kIXeojNQoO95g0HIF5ivMBAb7MFHATUagBiyxKT4Wh7rbu X-Received: by 2002:a62:678a:: with SMTP id t10-v6mr12364423pfj.139.1540813509230; Mon, 29 Oct 2018 04:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540813509; cv=none; d=google.com; s=arc-20160816; b=0cdr1wfAc2fZc5L3ziFcNE1+cdPIwI3mmJXdm2mNEg6EVe1y8f8zEBBj8MyNEc/46U 3qNtOVUqopx1R0Qw00n5r0VApwLANqv+m9Y12WJLqgToIlhszmLKRrTGTtJdsIqzGD0y cLGVw9CmkH01r/6gUwf4cz2aeolVbNgGiPhIwTkhhIuyG+kfCPuxCZixh6kMO6px+dC3 n4AgV2l5WoaDRbHQ4IcTBjrAZfD+LwtVXS8NtIMuyE5sYQC8kPFi31wGk4gJSgPuZY1b dob2pdI3oFlIT76A9N6cQ/oj5R5dr+sApdeo8AGzdekHAen1pm3bRiYHGCMMenlVkqU8 i3zA== 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=NnaHt+H2d7JMpIGGd8atBsPo9GQNz77WFTeV6abbnwE=; b=Vatt9bquEqCd5UwuOT3cwGzcXeqQonxDs6BKygkHy+iYTLGspwIDNWNSmEDQB+Vrqv 5uFobEaFfV+fqQRdA3pnU7upNkkW53Tcozrypk8RsvAbAORaoWrgNda0fan2NrFL2Y2N 6h2ahNHlT/QJiQUZvafMhr3KyWFOntYaBKgzSNopjJnp0QVnfOCNJ/CmbbYhawjJNf+y q6XpiFWVXeuslFd3uxmOV8F6D5bElLI75/jlUGBktwMcxhOi3+PeRSVY5QpvEQztDbEX K0DzPK1Ez5x/fiTd/46Kk3o9TNKtspDlvXIEaRNoI8cdpIqIUEed5o6GMos/EZqMiQHh CUhA== 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 o11-v6si19472422pls.76.2018.10.29.04.44.52; Mon, 29 Oct 2018 04:45:09 -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 S1728523AbeJ2Uck (ORCPT + 99 others); Mon, 29 Oct 2018 16:32:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59314 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727734AbeJ2Uck (ORCPT ); Mon, 29 Oct 2018 16:32:40 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C5B583F44; Mon, 29 Oct 2018 11:44:21 +0000 (UTC) Received: from localhost (ovpn-8-17.pek2.redhat.com [10.72.8.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DECEE600C5; Mon, 29 Oct 2018 11:44:17 +0000 (UTC) Date: Mon, 29 Oct 2018 19:44:14 +0800 From: Baoquan He To: lijiang Cc: Borislav Petkov , Petr Tesarik , linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, mingo@redhat.com, tglx@linutronix.de, dyoung@redhat.com Subject: Re: [PATCH] kdump, vmcoreinfo: Export sme_me_mask value to vmcoreinfo Message-ID: <20181029114414.GA11408@MiWiFi-R3L-srv> References: <20181027101221.GC1046@nazgul.tnic> <20181027110858.GB14493@MiWiFi-R3L-srv> <20181027145151.GA7338@nazgul.tnic> <390b16ba-05d7-3590-c3b2-4b69aa3ae051@redhat.com> <20181029083118.GC1884@MiWiFi-R3L-srv> <20181029095738.GB20101@zn.tnic> <15897206-c1a6-ced6-3a1b-f71da8fc9c83@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15897206-c1a6-ced6-3a1b-f71da8fc9c83@redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 29 Oct 2018 11:44:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/29/18 at 06:12pm, lijiang wrote: > diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c > index 4c8acdfdc5a7..3cc975e7ff8f 100644 > --- a/arch/x86/kernel/machine_kexec_64.c > +++ b/arch/x86/kernel/machine_kexec_64.c > @@ -352,11 +352,16 @@ void machine_kexec(struct kimage *image) > void arch_crash_save_vmcoreinfo(void) { + u64 sme_mask = sme_me_mask; + This may looks better. VMCOREINFO_NUMBER(phys_base); VMCOREINFO_SYMBOL(init_top_pgt); vmcoreinfo_append_str("NUMBER(pgtable_l5_enabled)=%d\n", pgtable_l5_enabled()); + VMCOREINFO_NUMBER(sme_mask); + #ifdef CONFIG_NUMA VMCOREINFO_SYMBOL(node_data); VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);