From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FA26606A322 for ; Wed, 2 Dec 2026 20:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=Ma4rUhkI Received: by kanga.kvack.org (Postfix) id 821D46B061E; Wed, 2 Dec 2026 15:27:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7F83F6B062E; Wed, 2 Dec 2026 15:27:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E72C6B0630; Wed, 2 Dec 2026 15:27:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4C1EE6B061E for ; Wed, 2 Dec 2026 15:27:07 -0500 (EST) Received: from smtpin10.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2D2E5C01E0 for ; Wed, 2 Dec 2026 20:27:06 +0000 (UTC) X-FDA: 85500177252.10.68FCD00 Received: from mail-yx1-f41.google.com (mail-yx1-f41.google.com [74.125.224.41]) by imf23.hostedemail.com (Postfix) with ESMTP id 34585140009 for ; Wed, 2 Dec 2026 20:27:04 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=chrisdown.name header.s=google header.b=Ma4rUhkI; dmarc=pass (policy=quarantine) header.from=chrisdown.name; spf=pass (imf23.hostedemail.com: domain of chris@chrisdown.name designates 74.125.224.41 as permitted sender) smtp.mailfrom=chris@chrisdown.name ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796243224; b=jwtcinrXiXpqTLCWXXbn6ibXRL+c+NHecznqTc8rrtIeNiVUzT8lHSAqVdC0emelzw1CWC p5IkntnNalFNAGHe9/sSD6dX/IW9ZVfikXzZd5IcmoFn6nvUZS77NPh8gwibXM76PNAQtX ISdbRn8KlaTce8HAPDaxagaXThacZZM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796243224; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/20Pd8UcVbF5R/JYvsHl3SA+GoMQmH629YqmPV/OEmI=; b=Ae7wq3brHhju7s1z5f13T7avp7d66F/QWkEgtZPwcpYv0ChlshLsx/p7kfjfMp5AdyMqxZ 4tLbEm23YnCLgv+XFhJf6vDakZTExgi9Fw6G+TTKN44elsBYKa/Ei342RigQsXVJL85f2/ ylNsE9OQndE03Tpb5zfq+rIpvOeQX6E= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=chrisdown.name header.s=google header.b=Ma4rUhkI; dmarc=pass (policy=quarantine) header.from=chrisdown.name; spf=pass (imf23.hostedemail.com: domain of chris@chrisdown.name designates 74.125.224.41 as permitted sender) smtp.mailfrom=chris@chrisdown.name Received: by mail-yx1-f41.google.com with SMTP id 956f58d0204a3-67db6d4054eso14948660d50.1 for ; Wed, 02 Dec 2026 12:27:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1796243223; x=1796848023; darn=kvack.org; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=/20Pd8UcVbF5R/JYvsHl3SA+GoMQmH629YqmPV/OEmI=; b=Ma4rUhkIlgVJSZoenQWQgU5fIgYgcyxhtPOTxbWmHZR9V91Z86mpglmJYZ+FdH/bj5 eenrGEzvHlG2//bDApDHNtpjK/6ecRvP6IiqPdFLqwdSKcBFawKhu5mP01rvUpQUHFgx l4EsDTLpKWonw79sHewJTzG+fgeePjZ4ElyAQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796243223; x=1796848023; h=user-agent:content-disposition:content-type:mime-version:message-id :references:in-reply-to:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/20Pd8UcVbF5R/JYvsHl3SA+GoMQmH629YqmPV/OEmI=; b=pP2mFVH+iL/q71tA/iymHItQJRcIpgwl2AZXjdsn4lvBoZesroeLY4kdLacdJnJPoA kRf1va6cJSH3+WLUGeiKigHGWpO4qcOViyR2R2AggLX9eG9n6fS2NDbtqiG7QmJPfBux +EzwRUUn+ynJLt0uNTIsuUjxUVytUpnpuqpjh3bkfMvsPLGDz8E2jvSG2+RHCtIOW4uH CPyALsTxJZyineR2InpWmVmEHACXGv0EqJnGH/WRUoyNlOkNUaGrknnmINyebKKQrGXX s3pm4eotpSPZYaNEfeKn0E/BAkt00POAkM5ETjTQBqn14G6Zy21H7Tnmc+JlSXSXdWWa fLOQ== X-Forwarded-Encrypted: i=1; AL+hErFRGnM2ngiLMg1suKTmo8KWXBQ+IwirKS1+ar5+ZkGNFrviBneIhIstiQEXW4VyWW7n4xb3ekmX6g==@kvack.org X-Gm-Message-State: APuU4Z/rNMFj870y3mRa/OX8WOf10mIsh07W4zc053BOk0V3lbneYQm9 Lw5jjm5YvjWnJVMQ8p+I8rCFoV31e60n/LdlrE6KCJcx4/FMVVSCzu5m/HmqtOwhvwU= X-Gm-Gg: AZFdTZcTo+gx2LyP7fNrBBsa8fN2d8e/I3nhpCQW/FvINb7+QpTUrHN2X7XPtkDbhRu 5/xo09rb9pMFjFMj7AsqPeVeHiykRyHPKEq5NVoxA94ymBNFIme0CjxbpzMUHXVWtRk/N82edKt cZQOhegoKAb8aXGvXldViEwARk5FmE+/sKZfDZojmuGNgF0YATYlD04AkRy+WFuXlPRlpDMzPvl 0RB8GtxBi2enxRzEmQUS2ZZd1U5JyW3GPVOdt2DAisDCFx3/LZBW9guIeUyn0wi4YrfZokikwYg FHqmJwRl/CxRh8msI+MAq1iWSQBbXqEkbiyZ2VfjBpgSFZMs0FJV55+GVMr0Ibtmoq/+RrH+hd5 MMtlV920H+diuUNTMM4FAAAtmi6L5RlAPZ0vZ5aZSF23SamjyEIRce073tAOj+x4ivpwivdVwRn ZlLaDWddmfEvFzL/GevCCkCSjCsk6pgM3fiZO++cMYZ0T2pJyrgGokqaqkl4klpSgJZZ16K/l23 2YvCIlShdnUgCnp1NroDAy0w9NxP2sInO8AWLIFGskVRIow94hZli2dykWBUdXieRMQxa/HYJLm 09tT7Js7GuAQoLwJ/MxNyEpItgx/E96PiZniL3n+LJqp8IcgfOAcf5YdCm8Nl69RRSDBCL6S1wP nkdd5fw/2s0Iunva5gKrHDzuvzH2GLNNx+5kDxTdoUd0f/1BDpIeBhll7WMIZY87JLJaYymw09G TuP/v5goKPo8OzHm6f4LgDRu4EWXZWtlxGh9/w4CHg0qf9hV6UdvkPnl5+9LUPhTa37wxbjsM1Q hu3OBhePPXWtr9/W7s4mMA= X-Received: by 2002:a05:690c:3703:b0:8b4:cba5:fd6d with SMTP id 00721157ae682-8b520556149mr177186067b3.66.1796243222994; Wed, 02 Dec 2026 12:27:02 -0800 (PST) Received: from [172.20.0.3] (c-73-207-185-9.hsd1.ga.comcast.net. [73.207.185.9]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8b52033c2d4sm160909677b3.36.2026.12.02.12.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 12:27:02 -0800 (PST) Date: Wed, 02 Dec 2026 12:26:59 -0800 From: Chris Down To: Samiullah Khawaja , Pratyush Yadav , Tarun Sahu Cc: Pasha Tatashin , Mike Rapoport , Alexander Graf , "Andersen, Tycho" , Anthony Yznaga , Baolu Lu , David Hildenbrand , David Matlack , "Heyne, Maximillian" , James Gowans , Jason Gunthorpe , Pankaj Gupta , Praveen Kumar , Sagi Shahar , Vipin Sharma , Vishal Annapurve , "Woodhouse, David" , Luca Boccassi , Jork Loeser , Chenghao Duan , Zhu Yanjun , Sourabh Jain , linux-mm@kvack.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: KHO bootmem without pre-reservation (was: Re: [Hypervisor Live Update] Notes from November 16, 2026) In-Reply-To: <20261124205808.4097419-1-pasha.tatashin@soleen.com> References: <20261124205808.4097419-1-pasha.tatashin@soleen.com> Message-ID: X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 34585140009 X-Rspam-User: X-Stat-Signature: 6wy13u5jd37i818az66oced6gejm67qe X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-HE-Tag: 1796243224-969144 X-HE-Meta: U2FsdGVkX1+6uawOkr+z+fRpHh82PRT/V4vWHSZEi4zM5+raOfp67zK0um50yXi7CpmD10bqo31aj6rcPpuGt2EuDefxKaTkUMAbp/zEgXcmiSIj5JZPicn7ELHgav7Jane0/81IHaj5Vfazm6l50K1tLUbZqZiLseQNAhI+bHkmBYEro+snmJKf+x8FdT9VYTvmrJtRvkPb99jow80K6/z4cGKKSI8gLKj0bDi/GucogDe/1Yl59zavP/TSH04M6tHD1u25pml3/+tQ69fPkAK+hieq2MaazBQVApNyb66deV5tnBhfD+y7lnQMHLt7GjOMcp56383xHL47YyrIZmJYKn2+L9X1YrtqQuvPsMb1dMj07cncrHDpn7Zg/36wfrUmzuLilGHyTaTLA/4623LTGNtp54Tln5n2x1nBm54kG0zZ7S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jIAfgf89pw4vyLJSxt+p+uc9oZkePYaO9ndFFFVEJpw/32N+xFIxmxaJRX/NyTyQ2akM0AJPvgxOIJu+1ZP6QiBBox6Ys+qhB/mt4YdGfivQ/MNyoqCOZQ8eG0nTV++qOgujT4H3Kr9lSXdK+zWR+x6ZKlffYocSZ+FADiwjAOMr+78fqO6UMB47P0ggGQ4PE5rHp9mD8uwO9SZ3Yl93Wv2/Ge3ImYLFfDKBp8BkFvBM555TL8S+YmFyb6aT1cEXEg95rvsc5O9sTCWxEriEQOfRqWXZ0edAqKbljQZXkaM= Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Samiullah, Pratyush, Tarun, At Meta, the size of the bootmem reservation is currently the main thing stopping us from enabling KHO more widely, so I'd like to spend some time on reducing it. Before I start, I want to make sure that I don't duplicate or get in the way of what's already planned or in motion. Here is my understanding of the situation as it is right now. Please let me know if I have anything muddled! - On 21 Sep [0] there was discussion about dropping the pre-reserved areas and relying on dynamically extended bootmem instead, perhaps with a small bootstrap region. Samiullah wrote up the initial ideas. - On 19 Oct [1] there was discussion about the report about CMA pinning, and Tarun's work with David on migrating movable pages into CMA. - Mike's sizing fixes are now in the liveupdate tree, and the notes in this thread say that the bootmem layout is still expected to change. I have a few questions: 1. Samiullah, is the design doc public, or could you share it? I couldn't find a link to it on the list. I also saw there's a mention of a Google Doc attached to the calendar invite, but I didn't find a link to that, only to the Meet link itself. 2. Is anyone working on an implementation at the moment? If not, I'm happy to take this on. 3. Is the main open problem still how to guarantee that the next kernel can boot when the preserved memory is badly fragmented, or has the thinking moved on since LPC? 4. Would smaller reductions to the current scheme be welcome in the meantime? I haven't measured anything yet, so please tell me if I'm missing something. :-) Either way, I can measure on top of Mike's fixes and test with our workloads, and I'm glad to pick up whichever pieces are useful. I'd also like to propose that as a topic for the next call if that sounds good? Is that scheduled yet, by the way? Thanks, Chris [0]: https://lore.kernel.org/r/20260925143000.2729890-1-pasha.tatashin@soleen.com [1]: https://lore.kernel.org/r/20261025143601.2564170-1-pasha.tatashin@soleen.com