From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI5RU-0004gW-IH for qemu-devel@nongnu.org; Wed, 22 Jul 2015 21:37:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZI5RP-0005XK-Im for qemu-devel@nongnu.org; Wed, 22 Jul 2015 21:37:00 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:35219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZI5RP-0005X2-9H for qemu-devel@nongnu.org; Wed, 22 Jul 2015 21:36:55 -0400 Received: by wibxm9 with SMTP id xm9so187000071wib.0 for ; Wed, 22 Jul 2015 18:36:54 -0700 (PDT) Sender: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jul 2015 03:36:37 +0200 Message-Id: <1437615403-13554-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH RFC 0/6] vhost-user: add migration log support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: thibaut.collet@6wind.com, pbonzini@redhat.com, haifeng.lin@huawei.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , mst@redhat.com Hi, The following series implement shareable log for vhost-user to support memory tracking during live migration. On qemu-side, the solution is fairly straightfoward since vhost already supports the dirty log, only vhost-user couldn't access the log memory until then. The series is based on top of "protocol feature negotiation" series proposed earlier by Michael S. Tsirkin. The last patch provides some documentation on what the backend is supposed to do to handle logging properly. I tested this solution against a modified "vapp": https://github.com/elmarco/vapp branch "log" The development branch I used is: https://github.com/elmarco/qemu branch "vhost-user" Comments welcome! Marc-André Lureau (6): configure: probe for memfd posix: add linux-only memfd fallback osdep: add memfd helpers vhost: alloc shareable log vhost-user: send log shm fd along with log_base vhost-user: document migration log configure | 19 ++++++++++++++ docs/specs/vhost-user.txt | 40 +++++++++++++++++++++++++++++ hw/virtio/vhost-user.c | 13 ++++++++-- hw/virtio/vhost.c | 42 ++++++++++++++++++++++++------- include/hw/virtio/vhost.h | 3 ++- include/qemu/osdep.h | 64 +++++++++++++++++++++++++++++++++++++++++++++++ util/oslib-posix.c | 62 +++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 231 insertions(+), 12 deletions(-) -- 2.4.3