Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7642539imu; Wed, 14 Nov 2018 22:21:47 -0800 (PST) X-Google-Smtp-Source: AJdET5cVfTiuDc4Z/jQ4VtnyGHudTTeJND+/RsNcl4IpVjJdDLPtLEcYq9Fg86cvglYXaOAbq95F X-Received: by 2002:a65:50c1:: with SMTP id s1mr4508130pgp.350.1542262906975; Wed, 14 Nov 2018 22:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542262906; cv=none; d=google.com; s=arc-20160816; b=qIBuYvQVdwoQQT/MX9tLGSM0xkHQ9yUWJSLC6atjE/YVmqVVCkXkKNMMAQbzfK1FNa blwR0HGiuIDBjUPSdzpIWkB11NVHazPhKuWmukG8iM8O0p5q3jvyhpiR+X+C2FV1e1h6 18DiGz4Skd51y1mp42Jj4iqLohaqqLlzSbZcWyln1JwgYlhXw/EoD+7Fo7pdMxnYVUDm SSFsdguQp58g8pNthoG9KGqlVGxqXK2iATxCkFOjLz83wScuIxEsaR+OMn9t+1xtIXVV tf4YBmuZGb85I0jaztL+AihHL1TAMR3zPDA/HRVnOuEbK4Cg/13YiITi/LnaAKUuhLcM cvYQ== 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=NufNRAb7W5yPYVbX0euVxZcw5a4Qb7wLDVEgmhaRCrA=; b=CTJ19n1vLXbDK3JbpgUA2wtoutzkhuyiI4oZvaMT+wxKSZ2zQ8BnEHHc2ODeScOD0k xoMs6fa4TaTX1Qq49rWAu8ekL72XyNBe4fH6VN9pJra8i4F5Q0QNRQ3ymNgC5Mjn/Jml fZhim5FLx3yBLnzjCzsqm42Dfysv73F4DuNlXhxaT7Vi8hAs7ASKUJFu7Kuzrzh7BQZ3 wn2bPY5MrzGoPgy5u/WdoCLR4oQENtAtvl5Fkd9yjKsF/v+plP2kj6roRGz7MGrbcqCm 4w1baDFO2bkfacPUcqi+BaKtYRrrhYjKSbpP1sKfNqI2KydnU7ctOp3wbk1PmKfDLDPQ sqpA== 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 w18-v6si28755393pfg.70.2018.11.14.22.21.31; Wed, 14 Nov 2018 22:21:46 -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 S1728597AbeKOQ0I (ORCPT + 99 others); Thu, 15 Nov 2018 11:26:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58420 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbeKOQ0H (ORCPT ); Thu, 15 Nov 2018 11:26:07 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8433C58E31; Thu, 15 Nov 2018 06:19:38 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-146.pek2.redhat.com [10.72.12.146]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4D5D15D759; Thu, 15 Nov 2018 06:19:26 +0000 (UTC) Date: Thu, 15 Nov 2018 14:19:23 +0800 From: Dave Young To: David Hildenbrand Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devel@linuxdriverproject.org, linux-fsdevel@vger.kernel.org, linux-pm@vger.kernel.org, xen-devel@lists.xenproject.org, Andrew Morton , "Kirill A. Shutemov" , Baoquan He , Omar Sandoval , Arnd Bergmann , Matthew Wilcox , Michal Hocko , Lianbo Jiang , Borislav Petkov , "Michael S. Tsirkin" Subject: Re: [PATCH RFC 3/6] kexec: export PG_offline to VMCOREINFO Message-ID: <20181115061923.GA3971@dhcp-128-65.nay.redhat.com> References: <20181114211704.6381-1-david@redhat.com> <20181114211704.6381-4-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181114211704.6381-4-david@redhat.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 15 Nov 2018 06:19:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On 11/14/18 at 10:17pm, David Hildenbrand wrote: > Let's export PG_offline via PAGE_OFFLINE_MAPCOUNT_VALUE, so > makedumpfile can directly skip pages that are logically offline and the > content therefore stale. It would be good to copy some background info from cover letter to the patch description so that we can get better understanding why this is needed now. BTW, Lianbo is working on a documentation of the vmcoreinfo exported fields. Ccing him so that he is aware of this. Also cc Boris, although I do not want the doc changes blocks this he might have different opinion :) > > Cc: Andrew Morton > Cc: Dave Young > Cc: "Kirill A. Shutemov" > Cc: Baoquan He > Cc: Omar Sandoval > Cc: Arnd Bergmann > Cc: Matthew Wilcox > Cc: Michal Hocko > Cc: "Michael S. Tsirkin" > Signed-off-by: David Hildenbrand > --- > kernel/crash_core.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/crash_core.c b/kernel/crash_core.c > index 933cb3e45b98..093c9f917ed0 100644 > --- a/kernel/crash_core.c > +++ b/kernel/crash_core.c > @@ -464,6 +464,8 @@ static int __init crash_save_vmcoreinfo_init(void) > VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE); > #ifdef CONFIG_HUGETLB_PAGE > VMCOREINFO_NUMBER(HUGETLB_PAGE_DTOR); > +#define PAGE_OFFLINE_MAPCOUNT_VALUE (~PG_offline) > + VMCOREINFO_NUMBER(PAGE_OFFLINE_MAPCOUNT_VALUE); > #endif > > arch_crash_save_vmcoreinfo(); > -- > 2.17.2 > Thanks Dave