Received: from eggs.gnu.org ([2001:4830:134:3::10]:58528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYIs8-0008VH-7w for qemu-devel@nongnu.org; Mon, 30 Jan 2017 15:48:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYIs4-0004Ws-A1 for qemu-devel@nongnu.org; Mon, 30 Jan 2017 15:48:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57492) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cYIs4-0004Wk-3s for qemu-devel@nongnu.org; Mon, 30 Jan 2017 15:48:16 -0500 References: <1485422212-31546-1-git-send-email-ashijeetacharya@gmail.com> <20170128194157.0c82cc8a@bahia.lan> <20170129140329.3646dee3@bahia.lan> From: Paolo Bonzini Message-ID: Date: Mon, 30 Jan 2017 15:48:14 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] migrate: Migration aborts abruptly for machine "none" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ashijeet Acharya , Greg Kurz Cc: Thomas Huth , QEMU Developers , "dgilbert@redhat.com" , Juan Quintela On 29/01/2017 08:19, Ashijeet Acharya wrote: > Also, Paolo has a similar opinion to yours that we should fix it > instead of blocking it. He suggests to migrate only the device states > and skip all the RAM related stuff. Maybe he can explain it better > when he is available. Yes, there is even support already in ram_migration_cleanup for not allocating the bitmap: struct BitmapRcu *bitmap =3D migration_bitmap_rcu; atomic_rcu_set(&migration_bitmap_rcu, NULL); if (bitmap) { memory_global_dirty_log_stop(); call_rcu(bitmap, migration_bitmap_free, rcu); } I think you should just iterate until you find no more misbehaving code. The allocation is one, but ram_find_and_save_block should also return 0 if QLIST_FIRST_RCU(&ram_list.blocks) is NULL, for example. Paolo