From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796243224; b=hXD2Dj/gwY5LQeR/XTpy+eBthdiaWcJS6IfuMjdr+4UZd43r5Q+OubURvr3Nk9vN60tM Ew+gKNIVf0YuQ0nk/XeOflBXi3SRltY2lEfLmndYEe+Wn4hcKmbZxeqwS36HEHasB2LzV PzNLN4huyDaGsG0NUT8kds0IB388fjg0u/N3TZXAWvL5TSnRbIzp52AGbY5UNR9x13G7G 2FKEjtYhTZ+++GUWyJewm64QyOroIzP//Qdh43Jpac+yzqcFy//IJ2PLoDH48l7Uf64Tq mcswHv2JIC6/p2lmASUNfXyRp6nfb0zX8SeVcuxvRA7r+BVFjis08JeDin3fgxQ59qg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796243224; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type:Content-Disposition:User-Agent; bh=/20Pd8UcVbF5R/JYvsHl3SA+GoMQmH629YqmPV/OEmI=; b=GbaxXTy7J97LNFXY1iTX/XsHRYEese1tgaB85zs474NiprJnR40C0RMzKVFhooWXPmBq n/L1U2DcZCpBSX30seQTfvjnG/1EcPjK2HUetcgynbQAMxuzd8jf+lOzdXozAzCalJ53o e9E86scOot7WvQ6FO2g77wQUkwqxrnjXKiSuwlKButJzUFbVF15iOxGwCMZoNUaQhh2Tm otrAY2ab8EYmQTXSTnsVl7UCu9hVom6zUhqnBhegGchOnNRptnZcTef5QTM0Rz5AcDg3a Uyl1zwZO+F9XfjvnuUmcljfciaGfCQOThnOYo8vP40DJPAJC1dRlXRaTygOGb1ycxhg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chrisdown.name; spf=pass smtp.mailfrom=chrisdown.name; dkim=pass header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=FKsI2s2Y; arc=none smtp.remote-ip=74.125.224.44 Received: from mail-yx1-f44.google.com (mail-yx1-f44.google.com [74.125.224.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 382CF606A322 for ; Wed, 2 Dec 2026 20:27:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 382CF606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chrisdown.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=chrisdown.name header.i=@chrisdown.name header.a=rsa-sha256 header.s=google header.b=FKsI2s2Y Received: by mail-yx1-f44.google.com with SMTP id 956f58d0204a3-67db6d4054eso14948659d50.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=vger.kernel.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=FKsI2s2YljblyzffTdrVWe9P4n+FX5bu3Ssh2jZPiw8r32QBrFMdSy9e6taReWr9Yy TZOFhHbmp8GyfSjNMqQfhGdfuCfL3IHT2PgyJbI/NKIsy+YKYqYXhvZfxR4Q3puG0yn3 hZVuVk4xSZ7Myd8Lrm2xB5fmfLwJB8LwE7Hys= 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=IpU8fZsYL71+Fc6JmXCY6XkeCYkEwUEgPCWXXPaTUBfzjUodnTRGvjdn5FBMSoXnUA mWp8rYlGuWRNQGZyxKvvV+AfEUsGizbdM8LXqsN4VT+SWxL6Q7vGJmAAOljQqeQXS9i5 BsN0c6/3gtqQczOnVfLjfW+qHs5CmxRdb5apNYGF8jMLq4SPagteNlD3ldFLWlm8MHix 2kvx0uVlRHnEaZqEaR0AbTxWGv6LdTZmFbjvHh4/15hCTONubTCZYDkTTl7V2IzT2EAZ bpPA5kXhJeIRg4XG28hrqzwzVp9AYGKPf6G4nUz5xJExzNXYCITeunVPbOkOVuJDxZo0 Z3XQ== X-Forwarded-Encrypted: i=1; AL+hErHGelll1tAnCDG1Dv1uWmYM8Hitc9jo2YlPh9dA2fVlaRs/D9FmL1ZaE4e5ulVq9F92oeR7ezR8q9RRX/s=@vger.kernel.org X-Gm-Message-State: APuU4Z9AOFG0HcGU+jA496YaOmdbZ79hSN6Cakd9P2kN5AevDB6s4Wko 9LBZxVe0cDnOb64LkHa8jixBx83Mw8mtkjRxPgTQoCI/OqcyQ1QW353vD8z2CihIg7c= X-Gm-Gg: AZFdTZe/vQ2aJMVYFwNIk6YkVKY14R0usrJP2zjs7xTvS2NfBvt8JLygoREmidYWThO NBJLWlp8Wo7dXJ2Ayoio5xH+xyggW0kudThpDGwcstZiRiZwKfTaj1zbsRcIKFF3wm1kVw3ZKSE X8vDObYQtZx8wPBR4jHSdGM7RN652/QoXjQAWNEOE+Alm97Wf2M81qXyjelpzaHu+Y3DjAby0TP y+jvn6pAojAX0MPBY15PmTXvaAHFnCSYV2JRM27gM/oET9IchUHQC0PyNZQNAj7NWMJbAvaxM3V sAaLe79LILGjPEcLY4fbwYarRJuqW5EFuBRnrXfxkW/pjq8KX3p+S7af7zKfpNYQFZ1FPnroU/I f4ah+8tfm08jO02Qi1cDSTAXxgTqkxY9XoQo3aoBxMwuig2Br4zjCneb6rfJ33ueOtAwfJfgHUa oAW+E/d+JkudAhA9289UMXlhfk1sfw+Ih4KmaJgYK+xA8gNakg7MqibwlAOwCIdWrWYgxBpgp41 SEi1xHv3IJxeuAJICjWMY9/MA3YfT7tpqCfKcJmltqj8sXjs+q+BoDrm6xjUgi3P53e6UvgkrS6 2OIupYxABGtNsp6FPslM2B8bs0HrENDlhAeu43d7WMSzN/gI5FbQFFvTLCRFCeWsrx6L/WwGk0r ujv2o3+qCP0+11gYhQ48JmArzqxM6iTQMhkrE0jvhfnArgG04afHk4GlTCzoIKX7y9W9c431Cj9 afcQ+5E1zH09TazF0c5+iW0a+xHzGTe1GIZVNROJqTmKAlFbFFtE3QkWex7gz4zcFO3TtZ6OqP7 l4/xmh8mP4HewaPOE5KV90= 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.3 (cc9e3943) (2026-10-09) 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