Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7261319imu; Wed, 14 Nov 2018 14:26:10 -0800 (PST) X-Google-Smtp-Source: AJdET5c2jUeGqzjvboQ4CrLIPTVycFPcA7TOewAzOK/D4qPZV9wHBu3nffEP5vlLWZxQ1Gv9LNAA X-Received: by 2002:a62:1e42:: with SMTP id e63-v6mr3768495pfe.149.1542234370481; Wed, 14 Nov 2018 14:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542234370; cv=none; d=google.com; s=arc-20160816; b=TF0uSmQmb57m8eTuWuN1WhNKR8+C2ymZn2i9H5OqOg09CaWiAt05AZW+KEcx96UPuk Bt4qzkwEeYiLArK/v0uNrxa6PQXv1THJH9kwX3TUzO+x4SX2GKt+8FFiQX3i14LI6KEv Xj4KqgQdQRQPpVQa95NbQDgKLWvf5RfieZn2NrcSwlGHo8tpIOJI2zWTkvYc+pl7+V92 acyOkziMCjQU7e+qG85aN+DTvCxF/LOLvCu9JfPa+OfM4DpAwF3QehXB/eLKXSQb+Qcj 8NsOft9NSQ2tUTiRDb1SLtqAr9PRWUcWP1Z38KWsFvKDrqgVK0HOr+QUAjzDFLyoVk8Y MHVQ== 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:dkim-signature; bh=HZ9FoT/Yy3OX8C0H4qzEvYCUztlDQL9Afu/eqdCHPIU=; b=pHrvfji57uUU6+jLTkx9zcVcS8dhdIc70r+PE8igFangaRB30pAUt3jRK1n7OvNmdO Tk3GvQaemNhuG1e44h9rj8voA5ME/qqJwqAw/4OobdP1NanEFsFZyn7GxBlYB5+RTnCN li0m+LmuDtr8iY1nxNq+0gqI+PKNe1sp0uNXCIyBsBenu+uNfN5HzxNAAB15EtGIk/L1 KqCdt74ZHuDN5iHgb83OZdHcCnlnZvtlv6Xpse+CMABXozaYw53SWAkTaZTSQMfmGOVX Gg/gknb1JvARjULSByJltcrHnD3VHVbJgRtqTFgPsSTn3bwRyQA5Xk0pshBjz6aAGOuf XYgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=du9FHmqJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si23201704pgl.148.2018.11.14.14.25.55; Wed, 14 Nov 2018 14:26:10 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=du9FHmqJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387706AbeKOI22 (ORCPT + 99 others); Thu, 15 Nov 2018 03:28:28 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:55000 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729093AbeKOI21 (ORCPT ); Thu, 15 Nov 2018 03:28:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HZ9FoT/Yy3OX8C0H4qzEvYCUztlDQL9Afu/eqdCHPIU=; b=du9FHmqJIFno6bdq2AWaNBqtB q9G5S07pYfFUoBX6rUJlRGhD+Ggnu7bn0V2NmFfhXVu8PFulCAVmSvxDs0TavDbD4ApJYN3lRgZ0V ZlWGBgkro3pzJ0HRwVJWmR1Gs43gASfN1yv9csU5NIl0gjDkjNDLgwEQc6cCsJ7yDrgmV26JIWW49 r4BR52qzvTZXmaqJf9CeWtFdnwYblbPpYACYw7pEhPy6Z49PsKlypZ68tCMD4cO2d3kvDZTbxgM/5 FttHCvpncqygVXjrC5SYPJUa12r9hCJwXIjJjP3r9D4d8ShA3rwNPW3H/7/RrnojeJ3PoOHluVe1T 8qNIkPKpA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gN3ZB-0001Va-DA; Wed, 14 Nov 2018 22:23:21 +0000 Date: Wed, 14 Nov 2018 14:23:21 -0800 From: Matthew Wilcox 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, Jonathan Corbet , Alexey Dobriyan , Mike Rapoport , Andrew Morton , Christian Hansen , Vlastimil Babka , "Kirill A. Shutemov" , Stephen Rothwell , "Michael S. Tsirkin" , Michal Hocko , Pavel Tatashin , Alexander Duyck , Naoya Horiguchi , Miles Chen , David Rientjes Subject: Re: [PATCH RFC 2/6] mm: convert PG_balloon to PG_offline Message-ID: <20181114222321.GB1784@bombadil.infradead.org> References: <20181114211704.6381-1-david@redhat.com> <20181114211704.6381-3-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181114211704.6381-3-david@redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2018 at 10:17:00PM +0100, David Hildenbrand wrote: > Rename PG_balloon to PG_offline. This is an indicator that the page is > logically offline, the content stale and that it should not be touched > (e.g. a hypervisor would have to allocate backing storage in order for the > guest to dump an unused page). We can then e.g. exclude such pages from > dumps. > > In following patches, we will make use of this bit also in other balloon > drivers. While at it, document PGTABLE. Thank you for documenting PGTABLE. I didn't realise I also had this document to update when I added PGTABLE. > +++ b/Documentation/admin-guide/mm/pagemap.rst > @@ -78,6 +78,8 @@ number of times a page is mapped. > 23. BALLOON > 24. ZERO_PAGE > 25. IDLE > + 26. PGTABLE > + 27. OFFLINE So the offline *user* bit is new ... even though the *kernel* bit just renames the balloon bit. I'm not sure how I feel about this. I'm going to think about it some more. Could you share your decision process with us? I have no objection to renaming the balloon bit inside the kernel; I think that's a wise idea. I'm just not sure whether we should rename the user balloon bit rather than adding a new bit.