From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796321095; b=aM7M9y7mEbUtZJ0jscDm1lpRs7jBHpQVavVHGD5UzWd3SlFwWKeXgGKqvt1UzBIegDCw OxWvKizmC567kuuf/9yx8aHdU1sq0QitcOV9mH1XOTZTe5oWXAJZ2WREMb9/LZ0hsl+qD t+t1YoZ0raISfV1c+8ijePV48+9nfTa+vnBATa2Xek6a2JHJtWeomgrlff4IRYqeY+vL8 sWyvw3mSwkaJ70XAnsM1xB3rjdIaRtrsqRwpx5VkUI1rZZ3dxOo0dUF0ZI9odhwhtN5DM 7Kxw1Ncy6EvfmRuDkMRIt6MmMNay300p+vpwseODFpxkT7JFV0C6+98j9R3gPlG6+Jg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796321095; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=Em/A3cOEbb7Raa99DcGjeG50TBIFBQ0maLFOWAAdYTU=; b=btfgfXIvMPWH8IDoLebi1VEP07OBoLNvbLgLd9Ne6Ij7IlmPyRVTexRUqF79wETDLKql GjnOg74Y9T/gxjGlHCM1w+4GMGTW1n4aIJ5WFWPy4QUhwD97otCUf7seixCl8i5401dz6 8gvwHg/s6b/09BByMGXpmd07IltfOrufeV+voBj0xAXn4389TN8UxhOgl2TCFKZcqM1rn Tc7Cpn3uUleueGOXJe85gi6cz5z6l7EzSK1QW4kkpc8j+Ky/NNUrzU8wGV9uQb9vgiJnx 26u1XYGm2aT0742+4rMJZOWDCYEyeKDRvnYb2NukhvN40gxMk//a+Q78+U/64wwb6tg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--tarunsahu.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=GsNTTcSA; arc=none smtp.remote-ip=209.85.208.70 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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 95801606A322 for ; Thu, 3 Dec 2026 18:04:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 95801606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--tarunsahu.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=GsNTTcSA Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-6babdfe377cso56601a12.0 for ; Thu, 03 Dec 2026 10:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796321093; x=1796925893; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Em/A3cOEbb7Raa99DcGjeG50TBIFBQ0maLFOWAAdYTU=; b=GsNTTcSAPA+vihhePsYZ2u+trGIZ+yCfHnxuOl5QqAo+MiCfZezinDlkcpEHJhm/+V xmtmx39b20/VfymvSrhC7oTEqcKJLLB28TodbCWnz/+RD67zPBAw5V2Ldrpjz1A8NPY3 fSod9MedGrV8rgiSpU6k6KutmlXzfJSDnFz/bL0Mj8R63NElWEM1EH/DdR6iTotuT4Za qKI6WLIGUQ1WhyBNAW+C7WhSeUjchhMsQJlGiLL4/+xZJL2khYqoq6ZnbHP7ttRFEy3m mf5Zc9uZ8D712XWuyH+2tXvUL519SyAXj7IRr8rnNp7feeYlA3LYWshxRVAb4m6H617F wZFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796321093; x=1796925893; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Em/A3cOEbb7Raa99DcGjeG50TBIFBQ0maLFOWAAdYTU=; b=Jlb7gQSL4qQtl4egenlxdBzIBtAFfz6DXL+xBkJuXLwc+X/qFKUPnUNmtYNsdL3d7Y KGgjtG/MXvDo+amgVKzziI1KVny58gll8FTwlwhuzUE7O66JV6U88rZQClJhXH66LSmf /pZhm1LQhe16JY2q+sn/vwXq/BEhpNuhOrNvZyqxZ+0kT9vXEeRo9kMtzfd+kltva/5b OOubcj0VJtMjhwa2kXFdTmq33EXJ/ax7EBX5MM45KyCEzyQc1kBD7WKlj6+XWFO0Xaww aZRR56DNjlPGupasvOwKSzhXZ3mCIHjBYX4XFkq5i/ZySfQ0DZnK8zN+zSbY5wXHZG3t nhyA== X-Forwarded-Encrypted: i=1; AL+hErG+B9mjFKsBiX6SgFVsoQbWLczop/BTItymXkEvaUiAcgWeWAh092xkb75koRpqA1maZ3VdU78A5TPlCh0=@vger.kernel.org X-Gm-Message-State: APuU4Z+09cN1mKW6X9eUmlwjtB3i5PQlcoVy4DXQXrsdr6DIajos9Oh8 khM/5Xs0fNmOgp9iHicLhH84EDCFhZmRADfIf4Pq94SyAdYSyxWa3DHX8lt3TbVL4XWKCjb571A vVWNjGdg6Q12FkSkoMQ== X-Received: from edcf8-n1.prod.google.com ([2002:a05:6402:c888:10b0:6bb:f77e:4636]) (user=tarunsahu job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6402:42c8:b0:6ba:9b7c:d897 with SMTP id 4fb4d7f45d1cf-6ba9b7ce6c6mr26663966a12.33.1796321092356; Thu, 03 Dec 2026 10:04:52 -0800 (PST) Date: Thu, 03 Dec 2026 18:04:51 +0000 In-Reply-To: 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 References: <20261124205808.4097419-1-pasha.tatashin@soleen.com> Message-ID: <9huzcxrinsu4.fsf@tarunix.c.googlers.com> Subject: Re: KHO bootmem without pre-reservation (was: Re: [Hypervisor Live Update] Notes from November 16, 2026) From: tarunsahu@google.com To: Chris Down , Samiullah Khawaja , Pratyush Yadav 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 Content-Type: text/plain; charset="UTF-8" Chris Down writes: > 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. I am not sure if CMA migration work will solve the problems with KHO having large CMA size, but certainly it will improve how kernel manage memory. I have posted a discussion thread here [1]. I would be keen to know what problems specificaly you are seeing that stops the KHO from enabling. [1]: https://lore.kernel.org/all/9huzfqwent4i.fsf@tarunix.c.googlers.com/ > - 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