Received: by 10.223.185.116 with SMTP id b49csp6296718wrg; Wed, 28 Feb 2018 07:09:35 -0800 (PST) X-Google-Smtp-Source: AH8x225QRG51DAiCTv75YQOmMnFGUt+7SUGIKfr0L6t8TXMPu3JIUJX1HcZzKqJ8TV0esvBXSLMV X-Received: by 10.98.171.24 with SMTP id p24mr18029962pff.71.1519830575056; Wed, 28 Feb 2018 07:09:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519830575; cv=none; d=google.com; s=arc-20160816; b=RuSTvyNV4PEqAnC+DHQUSB+5lE/xB6nRXJarwvFyqNohlSoJ9NKF9hyNPN0jbaT3q2 +UWo++NrKqMIm3EDN3NYS6iaFV6eR+YU4iiSXpYEO08GuyoPwJn/mFhvvUjwqdmKCCHt IJdlyKKZSE1us9FMQxLnpxW/32+zRo6VlsoTb3qNds4dpDJZLc4SgXaXdFCl7XemV750 Y7zX4sG8UqPoC+J1LSkVfTHc/2MNU3/bOdB1HPV/74awHTdvUYEM3aqT/qUR9UvcllIB eNSLtE+L9glIdO0iOUrVsBniIV5zsx/8dgGj8COYZOAQfTDzsupJ5SXkTNg8cPzENzI+ FvUw== 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=s9atGimicKlsquwAN2WTWdq/46ZB19Za90jZJWZWK54=; b=frP0ma0sSuhgmkfTSOWVBhARqtiUqrgKTA7YSNay6PkUHhP1alAHwbxpzAqp8JMZ+P cDE2Hmp/19WlRjCl78OtagGOYuKzly5oVYlkWWNAjdlAYoWeARh1JVuvHROLQoxRADzN 4mgnwT46+Jm5AzpqPK8Hvzm73ImV/RqQ4HsCWsWfXGZWtxe7yP/1WhG+CQIuHj73JDnm 95YrkRghse1BgbswDqiH0vfeXNu3A0Q45SoCk1BvJE9lmiKO95bluOf+dbvSKamRhECY GyB0TKiZAHwdlKlB73X+yQxv65f35k6TLZes8CDejrYWRkY7mQreciogV5//6I4D5LF6 XvKA== 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 m4si1089767pgc.351.2018.02.28.07.09.18; Wed, 28 Feb 2018 07:09:35 -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 S932241AbeB1PHI (ORCPT + 99 others); Wed, 28 Feb 2018 10:07:08 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57900 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752602AbeB1PHF (ORCPT ); Wed, 28 Feb 2018 10:07:05 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DDC71402290A; Wed, 28 Feb 2018 15:07:04 +0000 (UTC) Received: from localhost (ovpn-112-57.ams2.redhat.com [10.36.112.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5974F9C042; Wed, 28 Feb 2018 15:06:56 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: linux-kernel@vger.kernel.org Cc: arnd@arndb.de, bhe@redhat.com, slp@redhat.com, mst@redhat.com, somlo@cmu.edu, xiaolong.ye@intel.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Andrew Morton , Dave Young , Hari Bathini , Tony Luck , Vivek Goyal Subject: [PATCH v16 09/11] crash: export paddr_vmcoreinfo_note() Date: Wed, 28 Feb 2018 16:06:13 +0100 Message-Id: <20180228150615.17317-10-marcandre.lureau@redhat.com> In-Reply-To: <20180228150615.17317-1-marcandre.lureau@redhat.com> References: <20180228150615.17317-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.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 28 Feb 2018 15:07:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 28 Feb 2018 15:07:04 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'marcandre.lureau@redhat.com' RCPT:'' 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.1.73.g5832b7e9f2