From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFvLk-0003A9-Mf for qemu-devel@nongnu.org; Thu, 16 Jul 2015 22:26:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFvLh-00065l-Fk for qemu-devel@nongnu.org; Thu, 16 Jul 2015 22:26:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFvLg-000638-O2 for qemu-devel@nongnu.org; Thu, 16 Jul 2015 22:26:05 -0400 References: <1435310564-9418-1-git-send-email-thibaut.collet@6wind.com> <1435310564-9418-2-git-send-email-thibaut.collet@6wind.com> <559FC31E.10600@redhat.com> <55A3221C.6090307@huawei.com> From: Paolo Bonzini Message-ID: <55A867B5.9000100@redhat.com> Date: Fri, 17 Jul 2015 04:25:57 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 1/1] vhost user: add support of live migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , Linhaifeng Cc: Thibaut Collet , jasowang@redhat.com, QEMU , stefanha@redhat.com, "Michael S. Tsirkin" On 17/07/2015 02:19, Marc-Andr=C3=A9 Lureau wrote: >>> >> How does vhost-user do this? I can see this patch providing enoug= h >>> >> support for *non*live migration. However, it cannot be enough for= live >>> >> migration unless I'm missing something obvious. >>> >> >>> >> Paolo >> > >> > Agree. vhost-user should mmap the log memory and mark dirty pages wh= en send >> > or receive packets. > This is already supported by vhost-user protocol, isn't it? The > LOG_BASE/FD and vring log_guest_addr are provided. I can't find any > vhost-user backend implementing dirty bitmaps yet though, but it looks > like it should work. I suppose the backend should stop all IO after > RESET_OWNER is received. But LOG_BASE makes little sense across processes, and LOG_FD is unused in QEMU, isn't it? So this patch is not enough to add support of live migration. Paolo