All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Halil Pasic <pasic@linux.vnet.ibm.com>,
	qemu-devel@nongnu.org, "Michael S . Tsirkin" <mst@redhat.com>,
	"Aneesh Kumar K . V" <aneesh.kumar@linux.vnet.ibm.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Amit Shah <amit.shah@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 00/11] virtio migration: simplify vmstate helper
Date: Fri, 30 Sep 2016 16:51:42 +0100	[thread overview]
Message-ID: <20160930155141.GF2095@work-vm> (raw)
In-Reply-To: <0cba1e29-7337-04a3-bbd1-8dcdd4eebd1b@redhat.com>

* Paolo Bonzini (pbonzini@redhat.com) wrote:
> 
> 
> On 30/09/2016 16:19, Halil Pasic wrote:
> > 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.
> 
> Another useful thing to do is to move code out of virtio_load and into a
> post_load callback of vmstate_virtio.

Yes, and I'm hoping that we'll be able to get more of virtio_load/virtio_save
into normal macros within the vmstate_virtio eventually.

So other than the minor issues Paolo suggested on the macro:

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

Dave

> 
> Paolo
> 
> > 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(-)
> > 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

  reply	other threads:[~2016-09-30 15:51 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-30 14:19 [Qemu-devel] [PATCH 00/11] virtio migration: simplify vmstate helper Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 01/12] virtio: add VIRTIO_DEF_DEVICE_VMSD macro Halil Pasic
2016-09-30 14:50   ` Paolo Bonzini
2016-10-03 10:36     ` Halil Pasic
2016-10-03 11:29       ` Paolo Bonzini
2016-10-03 13:34         ` Halil Pasic
2016-10-03 15:24           ` Paolo Bonzini
2016-10-04  8:00             ` Halil Pasic
2016-10-05 14:29             ` Dr. David Alan Gilbert
2016-10-05 15:52               ` Paolo Bonzini
2016-10-05 19:00                 ` Dr. David Alan Gilbert
2016-10-06  9:43                   ` Paolo Bonzini
2016-10-06 11:08                   ` Halil Pasic
2016-10-06 10:54                 ` Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 02/12] virtio-blk: convert to VIRTIO_DEF_DEVICE_VMSD Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 03/12] virtio-net: " Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 04/12] virtio-9p: " Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 05/12] virtio-serial: " Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 06/12] virtio-gpu: do not use VMSTATE_VIRTIO_DEVICE Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 07/12] virtio-input: convert to VIRTIO_DEF_DEVICE_VMSD Halil Pasic
2016-09-30 14:19 ` [Qemu-devel] [PATCH 08/12] virtio-scsi: " Halil Pasic
2016-09-30 14:20 ` [Qemu-devel] [PATCH 09/12] virtio-balloon: " Halil Pasic
2016-09-30 14:20 ` [Qemu-devel] [PATCH 10/12] virtio-rng: " Halil Pasic
2016-09-30 14:20 ` [Qemu-devel] [PATCH 11/12] vhost-vsock: " Halil Pasic
2016-09-30 14:20 ` [Qemu-devel] [PATCH 12/12] virtio: remove unused VMSTATE_VIRTIO_DEVICE Halil Pasic
2016-09-30 15:02 ` [Qemu-devel] [PATCH 00/11] virtio migration: simplify vmstate helper Paolo Bonzini
2016-09-30 15:51   ` Dr. David Alan Gilbert [this message]
2016-10-03 10:04   ` Halil Pasic
2016-10-03 10:06     ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160930155141.GF2095@work-vm \
    --to=dgilbert@redhat.com \
    --cc=amit.shah@redhat.com \
    --cc=aneesh.kumar@linux.vnet.ibm.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=pasic@linux.vnet.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.