Received: from eggs.gnu.org ([2001:4830:134:3::10]:59512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmJ5Y-0004Xo-B9 for qemu-devel@nongnu.org; Mon, 19 May 2014 04:38:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmJ5O-0006M7-5i for qemu-devel@nongnu.org; Mon, 19 May 2014 04:38:28 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:33489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmJ5N-0006Lc-Rk for qemu-devel@nongnu.org; Mon, 19 May 2014 04:38:18 -0400 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 May 2014 09:38:14 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4249E17D8059 for ; Mon, 19 May 2014 09:39:22 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps3074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4J8cBQg59506802 for ; Mon, 19 May 2014 08:38:11 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4J8cAhf029451 for ; Mon, 19 May 2014 02:38:10 -0600 From: Greg Kurz Date: Mon, 19 May 2014 10:38:07 +0200 Message-ID: <20140519063132.22955.63563.stgit@bahia.local> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH RFC V2 0/8] virtio: migrate new properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Anthony Liguori , "Michael S. Tsirkin" , Stefan Hajnoczi , Amit Shah , Paolo Bonzini Cc: Juan Quintela , Fam Zheng , Alexander Graf , Andreas =?utf-8?q?F=C3=A4rber?= , qemu-devel@nongnu.org Hi, This patch set tries to address comments from the initial review. For this round, I have focused on two changes: - as suggested by Andreas, we now call the device specific code from the generic code to ease the implementation of future devices. This is achieved with the addition of load/save methods to VirtioDeviceClass. - virtio subsections now implement a "needed" concept with the same semantics as in the VMState code. I haven't looked at compat mode issues yet, but it is on my TODO list. Cheers. --- Greg Kurz (8): virtio: introduce device specific migration calls virtio-net: implement per-device migration calls virtio-blk: implement per-device migration calls virtio-serial: implement per-device migration calls virtio-balloon: implement per-device migration calls virtio-rng: implement per-device migration calls virtio: add subsections to the migration stream virtio: add endian-ambivalent support to VirtIODevice exec.c | 8 -- hw/block/virtio-blk.c | 24 ++++-- hw/char/virtio-serial-bus.c | 32 +++++--- hw/net/virtio-net.c | 22 ++++-- hw/scsi/virtio-scsi.c | 2 - hw/virtio/virtio-balloon.c | 25 ++++-- hw/virtio/virtio-pci.c | 11 +-- hw/virtio/virtio-rng.c | 12 ++- hw/virtio/virtio.c | 169 ++++++++++++++++++++++++++++++++++++++++--- include/exec/cpu-common.h | 1 include/hw/virtio/virtio.h | 17 ++++ 11 files changed, 251 insertions(+), 72 deletions(-) -- Greg