Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3103123imd; Mon, 29 Oct 2018 01:32:49 -0700 (PDT) X-Google-Smtp-Source: AJdET5eo66aVj0gYvx14omZeMPULDdKNsj/DLZYjjlOy1y2pB5bJZg8PeuuIpAlHeI75A1H6swmM X-Received: by 2002:a63:1919:: with SMTP id z25-v6mr12716474pgl.135.1540801969612; Mon, 29 Oct 2018 01:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540801969; cv=none; d=google.com; s=arc-20160816; b=ArQ7C3MpupjsBTstmxL+bv+pAGjW846x3FwZngebkOWYz8uDD4/xCz3mrJQ+ngJvkN YGH8FDk9Rf3D8xmY88y0Ei1AberrtYSmfxZxVQne4DhEc1Rxw3G4qgfHncwHpqRrF+xo yye1wI0vvKY2O4QRXJaxVKdrU7X2dvo6prPv5Jm8JQDg9evffF+fqCenTcux7QyjoJAt bgGUZDvC6SOnFFaNk4DfYh85XAYLMspAlrGa08ztwhxoQH4tzay1699oNe7K2M7GWEuv jPlAsZ3UfP95jyQnswfy8khIvmFYZhnNDlIpmuRX/NQpMSf311Y3sHOciO/E/TMD7ljs KD0w== 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=+39olCr7JsIK8iFyal30ulSA9YKHloLEtrJThAHeGzo=; b=RY5wHLQqoNS6PVQHQD5Mnsfv8SB14Mw9+N0k5zYU6qOo/DuvOz8DNsEGZLjXVDGX9J +Ue646ZLuldks2oXssTMpnmqt1htyXqthB7+nesQl+MdQWefGmvjayZk2ohOTpIkcnTh wSboEzevI4+K+uIiQrGA8MaPCRcDhhjqh0VHzkcOpoSvYEFhceUpAKgWaRGDCgG3ujqU 4b7kCviS+gaGTSPLy3h1a7d6XWXXuP5JhVZa0Kwr+8Wv9LJMxLKqswdO8tvB//N1fgp5 u3qeStdUZT1I6KgWWjCTzUyBoNpN/260dAOukQgj7aZQJnCvcK7enzw39qGO/5wL7D9d 1rSw== 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 o1-v6si20087250pgh.193.2018.10.29.01.32.33; Mon, 29 Oct 2018 01:32:49 -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 S1729447AbeJ2RS6 (ORCPT + 99 others); Mon, 29 Oct 2018 13:18:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56044 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725969AbeJ2RS6 (ORCPT ); Mon, 29 Oct 2018 13:18:58 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E04A19D1FD; Mon, 29 Oct 2018 08:31: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 3C2CE608E6; Mon, 29 Oct 2018 08:31:20 +0000 (UTC) Date: Mon, 29 Oct 2018 16:31:18 +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: <20181029083118.GC1884@MiWiFi-R3L-srv> References: <20181026222517.GB26927@nazgul.tnic> <20181027081343.GA1884@MiWiFi-R3L-srv> <20181027091007.GB1046@nazgul.tnic> <20181027093917.GA14493@MiWiFi-R3L-srv> <20181027101221.GC1046@nazgul.tnic> <20181027110858.GB14493@MiWiFi-R3L-srv> <20181027145151.GA7338@nazgul.tnic> <390b16ba-05d7-3590-c3b2-4b69aa3ae051@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <390b16ba-05d7-3590-c3b2-4b69aa3ae051@redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 29 Oct 2018 08:31:22 +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 03:59pm, lijiang wrote: > diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c > index 4c8acdfdc5a7..de363796ed20 100644 > --- a/arch/x86/kernel/machine_kexec_64.c > +++ b/arch/x86/kernel/machine_kexec_64.c > @@ -29,6 +29,9 @@ > #include > #include > > +u64 sme_mask; > +EXPORT_SYMBOL(sme_mask); Wondering why it is global. Who else will use it? > + > #ifdef CONFIG_KEXEC_FILE > const struct kexec_file_ops * const kexec_file_loaders[] = { > &kexec_bzImage64_ops, > @@ -357,6 +360,9 @@ void arch_crash_save_vmcoreinfo(void) > vmcoreinfo_append_str("NUMBER(pgtable_l5_enabled)=%d\n", > pgtable_l5_enabled()); > > + sme_mask = sme_me_mask; > + VMCOREINFO_NUMBER(sme_mask); > + > #ifdef CONFIG_NUMA > VMCOREINFO_SYMBOL(node_data); > VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);