From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkbJV-0005dC-Sx for qemu-devel@nongnu.org; Wed, 14 May 2014 11:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkbJM-0006w3-Jt for qemu-devel@nongnu.org; Wed, 14 May 2014 11:41:49 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:47050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkbJM-0006ui-9o for qemu-devel@nongnu.org; Wed, 14 May 2014 11:41:40 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 May 2014 16:41:36 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id D8644219004D for ; Wed, 14 May 2014 16:41:24 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4EFfXpi23396480 for ; Wed, 14 May 2014 15:41:33 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4EFfXAB032742 for ; Wed, 14 May 2014 09:41:33 -0600 From: Greg Kurz Date: Wed, 14 May 2014 17:41:30 +0200 Message-ID: <20140514154130.10746.1412.stgit@bahia.local> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH RFC 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 The work on virtio endianness unveiled the need to add new properties to VirtIODevice and be able to migrate without breaking compatibility. There was a similar concern with the introduction of a VirtIODevice.broken property. This patch set is a tentative to address the issue, following a suggestion from Alex: - patches 1 to 7 adds optional subsections in the virtio migration stream - patch 8 belongs to the virtio endianness serie, it is sent as an example Thanks for your comments. --- Greg Kurz (8): virtio: add subsections to the migration stream virtio-net: migrate subsections virtio-blk: migrate subsections virtio-scsi: migrate subsections virtio-serial: migrate subsections virtio-balloon: migrate subsections virtio-rng: migrate subsections virtio: add endian-ambivalent support to VirtIODevice exec.c | 8 --- hw/block/virtio-blk.c | 4 + hw/char/virtio-serial-bus.c | 10 ++- hw/net/virtio-net.c | 7 ++ hw/scsi/virtio-scsi.c | 3 + hw/virtio/virtio-balloon.c | 4 + hw/virtio/virtio-pci.c | 11 +--- hw/virtio/virtio-rng.c | 13 ++++ hw/virtio/virtio.c | 129 +++++++++++++++++++++++++++++++++++++++---- include/exec/cpu-common.h | 1 include/hw/virtio/virtio.h | 17 ++++++ 11 files changed, 175 insertions(+), 32 deletions(-) -- Greg