Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3578641rdh; Thu, 28 Sep 2023 16:41:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnKLur9OJ1f1J5QpnAVaM/5hOCZB06Fu4Fueh/bO9rMS0aEQ5rTGzcC6bO4ocRdQute7UQ X-Received: by 2002:a05:6a00:cc3:b0:68b:e710:ee9c with SMTP id b3-20020a056a000cc300b0068be710ee9cmr2722254pfv.19.1695944469414; Thu, 28 Sep 2023 16:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695944469; cv=none; d=google.com; s=arc-20160816; b=f22ilzWlsfytnbWNDJYiU4xE4CPVSlWXVnRKD2bmAjFnG8Eus/qR9cADYgOMiA5PNz xsxf43+5OMwXcfZKvo6VEtYZNAQ1Xoqzl5JZJkPFIKHxPvHcIE5tmgKIdILjS/vjWmog ti4hOq5JWY0b4GmpqBC1c0Oq4pGELaDrmbrHlh4nLYygprjjM0m+dKkc7hbEHpEl1ic7 hfjQCodbF029FXMqBshWHjcB5xHg6BwUgXuB8W2Lg5vt8eW2EByHiqxgKMxqsy6LGgQJ sY8J+OwD+FAV0ClGjZSNpfYRQlCjTXVN7wgMZCsV/7Jf6xrfhskyVh8J6tMgiIj1D9w+ u/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bFWsn5339L6dUKvjKhnI/Ge5jv8zKKzH97svWY/n+sE=; fh=2pHV8XaSvi8/ta6QHmkR885cAWbl8WzWXjMkAhMIaeE=; b=H1EmoSR/ZrSRsxJr1aGmgaQFTiufNRQxvBHAEbK1xcU7EolncbUyuxOcK2rSFFlrXQ Ur7eecqcqynFkiUImBqB1MaI7WvWboQ7V9/9bs9bqJ/n4DhtrLA3m6xf5QMpV/bE60oP 91GWsoyt3zJwYDafhtpnfuuWQtfgDXrI6laNpRpw+hxLDsSHc5XjdM4k5NutdVhSyyz/ uyXUmCJ7Dqj71BcAwMlGqijN1jF13gPyGBbWybupJa0YNQnGU/BS7J8VlzJE0uaPvywi rt8mUq6SlLoGOFKNarZIMKefFndaFQ3jodGCMZWb2nswZkrXw9i0s8qxZX8DuZUDIinv DJNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gBtZaDc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z66-20020a633345000000b00573f9d84ecbsi9330638pgz.387.2023.09.28.16.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 16:41:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gBtZaDc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 74703830C30C; Thu, 28 Sep 2023 10:38:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231857AbjI1RiB (ORCPT + 99 others); Thu, 28 Sep 2023 13:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjI1RiB (ORCPT ); Thu, 28 Sep 2023 13:38:01 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F16C1A2 for ; Thu, 28 Sep 2023 10:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695922679; x=1727458679; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=vUYvjPlgFPXD0fht4ZgNaZaIp5jz+/28FbQ6ukEjL3g=; b=gBtZaDc2sJaN0BETrgVLHQOX8l3Xr9GaoZkQHNhOBvNrNPZX1E2Q9b1z X/gE/ZTTLW1MLeZ+ipFOUadFDp8iYVaCM1f1MgIDJAUY3vxPOXjsKJgBf rHHHaCQdh+g+IZfEJJ8GLOWHXkl75ilV0EHlunYd88b0qpOC0TAVr6C8O dGz9aAObrxybCfo8zxMtch/GPGeCIoN9u09kasFedT2dQkoBSbIC6p9H1 ra3QaO0usqkLB6WeWMOtwsXhqd2hXsU58MO72V5C2x7XxZwagiTfSW1my MolbXl91p3WPzoJpXd3hr8fmvfjE0XmLXsHO50tm92RTQCnBhyRZzDWdM w==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="448618131" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="448618131" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 10:37:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="699365408" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="699365408" Received: from jveerasa-mobl.amr.corp.intel.com (HELO [10.255.231.134]) ([10.255.231.134]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 10:37:56 -0700 Message-ID: Date: Thu, 28 Sep 2023 10:37:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC PATCH v2 0/7] Introduce persistent memory pool Content-Language: en-US To: David Hildenbrand , Stanislav Kinsburskii , Baoquan He Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, ebiederm@xmission.com, akpm@linux-foundation.org, stanislav.kinsburskii@gmail.com, corbet@lwn.net, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-mm@kvack.org, kys@microsoft.com, jgowans@amazon.com, wei.liu@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, graf@amazon.de, pbonzini@redhat.com References: <01828.123092517290700465@us-mta-156.us.mimecast.lan> <20230927161319.GA19976@skinsburskii.> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 10:38:06 -0700 (PDT) On 9/28/23 10:35, David Hildenbrand wrote: > On 28.09.23 15:22, Dave Hansen wrote: >> On 9/27/23 09:13, Stanislav Kinsburskii wrote: >>> Once deposited, these pages can't be accessed by Linux anymore and thus >>> must be preserved in "used" state across kexec, as hypervisor state is >>> unware of kexec. >> >> If Linux can't access them, they're not RAM any more.  I'd much rather >> remove them from the memory map and move on with life rather than >> implement a bunch of new ABI that's got to be handed across kernels. > > The motivation of handling kexec (faster?) in a hyper-v domain doesn't > sound particularly compelling got me for such features. If you inflated > memory, just don't allow to kexec. It's been broken for years IIUC. That's a good point. What prevents deflating before kexec?