From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHDUY-0000Jj-KW for qemu-devel@nongnu.org; Tue, 21 Nov 2017 13:41:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHDUT-0004bj-Su for qemu-devel@nongnu.org; Tue, 21 Nov 2017 13:41:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58314) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eHDUT-0004bE-NF for qemu-devel@nongnu.org; Tue, 21 Nov 2017 13:41:49 -0500 From: Juan Quintela In-Reply-To: <20171116151419.694-1-anthony.perard@citrix.com> (Anthony PERARD's message of "Thu, 16 Nov 2017 15:14:19 +0000") References: <20171116151419.694-1-anthony.perard@citrix.com> Reply-To: quintela@redhat.com Date: Tue, 21 Nov 2017 19:41:46 +0100 Message-ID: <87r2srpj85.fsf@secure.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 for-2.11] migration, xen: Fix block image lock issue on live migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony PERARD Cc: qemu-devel@nongnu.org, Kevin Wolf , Stefano Stabellini , Wei Liu , Ian Jackson , "Dr. David Alan Gilbert" , Markus Armbruster Anthony PERARD wrote: > When doing a live migration of a Xen guest with libxl, the images for > block devices are locked by the original QEMU process, and this prevent > the QEMU at the destination to take the lock and the migration fail. > > From QEMU point of view, once the RAM of a domain is migrated, there is > two QMP commands, "stop" then "xen-save-devices-state", at which point a > new QEMU is spawned at the destination. > > Release locks in "xen-save-devices-state" so the destination can takes > them, if it's a live migration. > > This patch add the "live" parameter to "xen-save-devices-state" which > default to true so older version of libxenlight can work with newer > version of QEMU. > > Signed-off-by: Anthony PERARD > --- > Changes in V2: > - add the live parameter > > CC: Kevin Wolf > > also CCing libxl maintainers: > CC: Ian Jackson > CC: Wei Liu Reviewed-by: Juan Quintela queued