Received: by 10.223.176.46 with SMTP id f43csp4387021wra; Tue, 23 Jan 2018 08:42:19 -0800 (PST) X-Google-Smtp-Source: AH8x224Ad+Qj0ez6iSHAxmZ94bbG+2c8nXe/nK9u31/9KOpT8jzA5AwPGDo39uTLp0p9BN0qm6Bb X-Received: by 10.107.183.78 with SMTP id h75mr4412087iof.201.1516725739290; Tue, 23 Jan 2018 08:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516725739; cv=none; d=google.com; s=arc-20160816; b=db5dHq6f3xDtRiR3LYBAil7HiceX8s6AI1SzHyoWkS/HWzxg/x+VzvfRxFR/6TTLzP sA5RllHZ4mynQcAMimJ5I+huCn1XPRPTJ/LwV6qEVDjdzul5bYzVFBmN1+RkVwptrII5 6AJhwE9DxPxklHND94frMcbH4zdXDQm+7irXBIAfA4k1IKZpGdV2vBQj0mCg89qLDUXY lkK8dc59hGHSPptGcWGV6Oh6SqtlGQuUPltPksPLtFYFxwumwYMRprKOThx8SmApUXUD udx4U7H4L6+Ngq9gzg6/nLzY7zHOsVM2zEFZvwjdrRXem16+TVAwmr46KA+VGrV71FBg 8LsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=O7i0S+0bacoF6yqmm6d0t76CF3HYUMleCUa2jLJ7ijQ=; b=Ob7kZXusMBMLAF+K6jz+GRheogSc7pV6gH8xGs8WVfIT72pg/wwAm8sGf2hMAxH9s+ xAoQ/f389xpTnuLESvkn8EtDBlHYEsZ5FcSkFrDfJ+ZoVA52JtZehQOkaoLiTG4zoPO+ OkrT8ITQnrLjBEjTns1fFPW/DWxA+Qf+tExzkmWyqHFYgwcKtBY4mfDu9xP0Rk8qdFSG Rpie+vyZqk7l5rjPCvqbUojakVxof8lTNr2lOEY9/mxLbN6+QRQKiu4mKHffQD+4vqkt 5Qu50ddt7lwY3KGno17HoGCnkAXkgzxt3X2Ga+6x1EtTuxuILX4Hqb71dUyTif45qA8b 5Weg== 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 n62si15206342iod.231.2018.01.23.08.42.05; Tue, 23 Jan 2018 08:42:19 -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 S1751947AbeAWQl0 (ORCPT + 99 others); Tue, 23 Jan 2018 11:41:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40172 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbeAWQlX (ORCPT ); Tue, 23 Jan 2018 11:41:23 -0500 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 6B0C55F739; Tue, 23 Jan 2018 16:41:23 +0000 (UTC) Received: from localhost (ovpn-112-59.ams2.redhat.com [10.36.112.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4639518AD6; Tue, 23 Jan 2018 16:41:10 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: linux-kernel@vger.kernel.org Cc: bhe@redhat.com, slp@redhat.com, mst@redhat.com, somlo@cmu.edu, xiaolong.ye@intel.com, peterx@redhat.com, qemu-devel@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Andrew Morton , Dave Young , Hari Bathini , Tony Luck , Vivek Goyal Subject: [PATCH v10 3/4] crash: export paddr_vmcoreinfo_note() Date: Tue, 23 Jan 2018 17:40:40 +0100 Message-Id: <20180123164041.30339-4-marcandre.lureau@redhat.com> In-Reply-To: <20180123164041.30339-1-marcandre.lureau@redhat.com> References: <20180123164041.30339-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.39]); Tue, 23 Jan 2018 16:41:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following patch is going to use the symbol from the fw_cfg module, to call the function and write the note location details in the vmcoreinfo entry, so qemu can produce dumps with the vmcoreinfo note. CC: Andrew Morton CC: Baoquan He CC: Dave Young CC: Dave Young CC: Hari Bathini CC: Tony Luck CC: Vivek Goyal Signed-off-by: Marc-André Lureau Acked-by: Gabriel Somlo --- kernel/crash_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/crash_core.c b/kernel/crash_core.c index 4f63597c824d..a93590cdd9e1 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -376,6 +376,7 @@ phys_addr_t __weak paddr_vmcoreinfo_note(void) { return __pa(vmcoreinfo_note); } +EXPORT_SYMBOL(paddr_vmcoreinfo_note); static int __init crash_save_vmcoreinfo_init(void) { -- 2.16.0.rc1.1.gef27df75a1