From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpyfq-0006Tl-WF for qemu-devel@nongnu.org; Fri, 30 Sep 2016 10:20:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpyfl-0003Fz-T6 for qemu-devel@nongnu.org; Fri, 30 Sep 2016 10:20:26 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52850 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpyfl-0003FT-O3 for qemu-devel@nongnu.org; Fri, 30 Sep 2016 10:20:21 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8UEIRlX038470 for ; Fri, 30 Sep 2016 10:20:21 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 25sr58mr6x-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 30 Sep 2016 10:20:20 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 30 Sep 2016 15:20:19 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0FD001B08069 for ; Fri, 30 Sep 2016 15:22:12 +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.14.9/8.14.9/NCO v10.0) with ESMTP id u8UEKG856029646 for ; Fri, 30 Sep 2016 14:20:16 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 u8UEKFNt021983 for ; Fri, 30 Sep 2016 08:20:16 -0600 From: Halil Pasic Date: Fri, 30 Sep 2016 16:19:51 +0200 Message-Id: <20160930142003.53232-1-pasic@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 00/11] virtio migration: simplify vmstate helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S . Tsirkin" , "Aneesh Kumar K . V" , Stefan Hajnoczi , Amit Shah , Gerd Hoffmann , "Dr . David Alan Gilbert" , Halil Pasic As a part of the long term effort to convert migration to vmstate the migration of virtio devices was recently partially switched to vmstate starting with the outer layer (commit 5943124cc "virtio: Migration helper function and macro" and the subsequent "virtio-*: Wrap in vmstate" commits). This was done by introducing a vmstate based wrapper driving the well know virtio migration process. As this transition is still in progress, some synergies were left unexploited, and some things can be expressed in a more vmstatish way. Let us simplify a couple of things and get rid of some code duplication. Did only a couple of smoke tests. Comprehensive testing is still to be done. Halil Pasic (11): virtio: add VIRTIO_DEF_DEVICE_VMSD macro virtio-blk: convert to VIRTIO_DEF_DEVICE_VMSD virtio-net: convert to VIRTIO_DEF_DEVICE_VMSD virtio-9p: convert to VIRTIO_DEF_DEVICE_VMSD virtio-serial: convert to VIRTIO_DEF_DEVICE_VMSD virtio-gpu: do not use VMSTATE_VIRTIO_DEVICE virtio-input: convert to VIRTIO_DEF_DEVICE_VMSD virtio-scsi: convert to VIRTIO_DEF_DEVICE_VMSD virtio-balloon: convert to VIRTIO_DEF_DEVICE_VMSD virtio-rng: convert to VIRTIO_DEF_DEVICE_VMSD virtio: remove unused VMSTATE_VIRTIO_DEVICE hw/9pfs/virtio-9p-device.c | 7 +------ hw/block/virtio-blk.c | 17 +---------------- hw/char/virtio-serial-bus.c | 8 +------- hw/display/virtio-gpu.c | 39 +++++++++++++++++++++++++++------------ hw/input/virtio-input.c | 13 +++---------- hw/net/virtio-net.c | 32 +++++++++++--------------------- hw/scsi/virtio-scsi.c | 18 +----------------- hw/virtio/virtio-balloon.c | 7 +------ hw/virtio/virtio-rng.c | 10 ++-------- hw/virtio/virtio.c | 11 ++++++++++- include/hw/virtio/virtio.h | 31 ++++++++++++++++++------------- 11 files changed, 76 insertions(+), 117 deletions(-) -- 2.8.4