From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D160A606A32C for ; Wed, 2 Dec 2026 20:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gEwPG7Qu; dkim=pass (1024-bit key) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=QVcFmv1d DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=/20Pd8UcVbF5R/JYvsHl3SA+GoMQmH629YqmPV/OEmI=; b=gEwPG7Quok46xf/OKitJIGwpLo fZ3g9/OufxagbGv2Gpu6eN/F4tmLCdQ/I5ujhn7/uTgj4DYHsCC6DDZs5G8fB2QSaSUywnxoS1H5B qvzN4kWCdNdm0FDITsQv8us8gnR8wfVYaqe2vL+3yqTii2l4qvFZDp6MLz+xn7x70aWa4UF3WY/3d /GzmYzoM+iDHv6gyJxN+C3awGtghKbGod4C0KBPJLGofJxIJs54prgasgDwglJaru61R/K9VmRlC1 LO4NOZt2y1HpXLlEQsA0N71PTgfriKDHNysBU4fSqENMwloUp+bk0Jzf3IfjxpuUsU8l/57sQhgGX GhVdgRxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYqv2-0000000CjP3-2Wn6; Wed, 02 Dec 2026 20:27:12 +0000 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYquu-0000000CjOG-2JJV for kexec@lists.infradead.org; Wed, 02 Dec 2026 20:27:06 +0000 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-8b0ca1ebc8bso121132307b3.2 for ; Wed, 02 Dec 2026 12:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1796243223; x=1796848023; darn=lists.infradead.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=QVcFmv1dta9D8/LRGt9qg0+Oc4x/g59P3nLFNAZtJ3+f/UZpQBMLT1zOzoFnBZr1zn 6F4nCYUorkZfQX4WVmyWGOA4/jK8tcx7PCbr6F7mrQ+lInv89B8spxzSmOfNDTLnfJHE xxwK776qFQiIRvVgSl1HTnSGvPHgX2EvE8G3g= 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=wrNVJfR0JIXpktGxWK87Eq2ySS41WO1C43tIP6pCxpfnnz3/crnuX2h9Pix44cKBA1 zh6pepwGmjJJ5rMq6e6oW060ocBJ/7N+VxPSTgYDxIoY2S14Od0f0Cg8oEk00+tEOYe5 oXt6MCRzvXePFolYDeGc62hL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x4iggA/PlVrrDxbHmckDC14ehPN3+vrKScB21lay+KPuzZuynPvFqDmudFHAT dYu7QCMvp2XQKOWL09flvwK/IIuFQF2CnU5PufU8BdfmBWt+szQPikoMfHhluPHBPdv4NMYK75F LFIAHn01v9Qqx6iXxgBQE7dgQrqgtj+Fa8fqGh4Pg7LMbr9sFt3zcYB+bF3x5xyP8pOEyeC65TF 0HgFHEOxURiVvMTsZtch/U= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_122704_619354_CDBA4D63 X-CRM114-Status: GOOD ( 17.43 ) X-Spam-Score: -2.1 (--) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 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