From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG623-0007pt-BF for qemu-devel@nongnu.org; Fri, 17 Jul 2015 09:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG622-0003EG-Kr for qemu-devel@nongnu.org; Fri, 17 Jul 2015 09:50:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG622-0003E7-GY for qemu-devel@nongnu.org; Fri, 17 Jul 2015 09:50:30 -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> <55A867B5.9000100@redhat.com> <55A8FBB6.5040607@redhat.com> From: Paolo Bonzini Message-ID: <55A90821.6000409@redhat.com> Date: Fri, 17 Jul 2015 15:50:25 +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?= Cc: Linhaifeng , "Michael S. Tsirkin" , Thibaut Collet , jasowang@redhat.com, QEMU , stefanha@redhat.com On 17/07/2015 15:35, Marc-Andr=C3=A9 Lureau wrote: >> > LOG_FD is implemented in the kernel drivers/vhost/vhost.c. It seems= to >> > be an eventfd-like mechanism to save on dirty bitmap scans. However= , >> > it's not well documented how to implement it in a correct way. > and it's not used by qemu, so hard to say if it actually work well. >=20 > > In any case, live migration needs a new message type (like LOG_MMAP_F= D) > > in the vhost-user protocol. > > Yes, perhaps with size and offset. I am looking at this. The offset should be 0... Do you know the size of the ram_addr_t space from VHOST_USER_SET_MEM_TABLE's user address and size fields? If the size isn't needed, you can reuse LOG_BASE, ignoring the content of the payload and adding the SCM_RIGHTS file descriptor. Paolo