Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B54E6CD6E4A for ; Thu, 4 Jun 2026 06:20:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wV1Ql-0000K3-Pg; Thu, 04 Jun 2026 02:19:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wV1Qh-0000Ii-R3 for qemu-devel@nongnu.org; Thu, 04 Jun 2026 02:19:47 -0400 Received: from msg-1.mailo.com ([213.182.54.11] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wV1Qe-0007L2-1z for qemu-devel@nongnu.org; Thu, 04 Jun 2026 02:19:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailo.com; s=mailo; t=1780552570; bh=Bw1zrkB3qLGpI5ECVBdjp7RYWvKv92FbDJ4MZT+qbns=; h=X-EA-Auth:Message-ID:Date:MIME-Version:Subject:To:Cc:References: From:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Kos0X4UAOQIYKUlz126My03iCZkVJ+FRz3mkq5fOnKbwhOw4N6on99F0x85ldeh+O nYOc9GA0u7E5d3/LJnjkPoAwa7aXxrRbxitgK+Mpy0juTFAEVI9qJWb9/3zHfI9l/Z a0MYHFlLkW+DAY5CSVc7txJQElPkRMhWRWvVP0Vg= Received: by be1-6.in.mailobj.net [192.168.91.16] with ESMTP via ip-20.mailobj.net [213.182.54.20] Thu, 4 Jun 2026 07:55:52 +0200 (CEST) X-EA-Auth: PaAx8BbZp4vQsikWbxXv/wPUOUZttCzYo8kECerkuEna+zRfgFG1tEb/ekZyHXne+JnX+7l5C1mAhC6IugYQ5SzPCOaYmiJT Message-ID: <2cbedc42-35d7-4919-bc55-899147f6b1b2@mailo.com> Date: Thu, 4 Jun 2026 07:55:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] system/physmem: Assert migration invariants Content-Language: en-US To: Akihiko Odaki , qemu-devel@nongnu.org Cc: Paolo Bonzini , Peter Xu References: <20260604-migration-v1-1-cef4a5b1bbdd@rsg.ci.i.u-tokyo.ac.jp> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20260604-migration-v1-1-cef4a5b1bbdd@rsg.ci.i.u-tokyo.ac.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=213.182.54.11; envelope-from=philmd@mailo.com; helo=mailo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 4/6/26 07:26, Akihiko Odaki wrote: > The migration stream assumes that the set of migratable RAMBlocks does > not change while migration is running. Assert that RAMBlocks are not > made migratable or non-migratable during migration, and that migratable > RAMBlocks are not freed during migration. > > Non-migratable RAMBlocks may still be allocated or freed during > migration; for example, QMP object-add of memory-backend-ram creates a > non-migratable RAMBlock without exposing it to the guest. > > Signed-off-by: Akihiko Odaki > --- > system/physmem.c | 5 +++++ > 1 file changed, 5 insertions(+) Reviewed-by: Philippe Mathieu-Daudé