Received: from eggs.gnu.org ([2001:4830:134:3::10]:45821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFdgw-0004uI-Sd for qemu-devel@nongnu.org; Wed, 22 Jun 2016 04:39:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFdgs-0007ru-KE for qemu-devel@nongnu.org; Wed, 22 Jun 2016 04:39:21 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:63766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFdgs-0007qv-9p for qemu-devel@nongnu.org; Wed, 22 Jun 2016 04:39:18 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5M8YwDW024308 for ; Wed, 22 Jun 2016 04:39:17 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 23q1qnkaak-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 22 Jun 2016 04:39:16 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Jun 2016 09:39:14 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id E7EB4219004D for ; Wed, 22 Jun 2016 09:38:41 +0100 (BST) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5M8dBKa9109908 for ; Wed, 22 Jun 2016 08:39:11 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u5M8dBq9001389 for ; Wed, 22 Jun 2016 04:39:11 -0400 Date: Wed, 22 Jun 2016 10:39:09 +0200 From: Cornelia Huck In-Reply-To: <1466536447-30146-1-git-send-email-dgilbert@redhat.com> References: <1466536447-30146-1-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160622103909.01e6fc77.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 00/13] virtio migration: Flip outer layer to vmstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, mst@redhat.com, amit.shah@redhat.com, quintela@redhat.com, kraxel@redhat.com On Tue, 21 Jun 2016 20:13:54 +0100 "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Hi, > This series converts the outer most layer of virtio to > use VMState macros; this is the easy bit, but I'm hoping that > having done that, the next trick is to nibble away at the virtio_save/load > functions and all of the zillions of device/bus helpers. > > I think the first two patches are the most controversial; > they remove migration support for old version of virtio-net and virtio-serial; > (for virtio-net versions prior to 0.11 and for virtio-serial prior to 0.13). These seem rather ancient and we would not care from a s390x perspective. Others may think differently, though... > I'm working on the basis that migration has bit rotted enough so > that the streams aren't migration compatible for that long back > on upstream - but if anyone knows otherwise please shout. > > The reason for doing those is that the virtio structure makes > it a bit tricky to pass the outer device version number down > through VMState to the device specific code (I can do it > as a hack if necessary using a dummy is_needed function); > and with -net and -serial compatibility sorted I think > every other device just supports a single version. > > My main reason for doing this is to get rid of the > calls to register_savevm ('going to disappear as soon..' since 2010) Real Soon Now :) Thank you for tackling virtio! > > It's lightly tested using the magic line: > ./x86_64-softmmu/qemu-system-x86_64 -nographic -machine pc-i440fx-2.6,accel=kvm -cpu qemu64 -m 2048M -drive file=/home/vmimages/f20.img,if=none,id=drivea -device virtio-scsi,id=scsi -device scsi-hd,drive=drivea -device virtio-rng -device virtio-serial -chardev file,id=test,path=/tmp/testfile -device virtconsole,chardev=test,name=foo -virtfs local,path=/home,security_model=passthrough,mount_tag=host_share -device virtio-gpu -drive file=/home/vmimages/jeos-19-64.qcow2,id=jeos,if=none -device virtio-blk,drive=jeos -device virtio-balloon > > Thoughts? Do you have a git tree to test somewhere? I'll take a look at the patches later, but it would be good if we could give it a quick test on s390x as well.