All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/11] virtio migration: simplify vmstate helper
@ 2016-09-30 14:19 Halil Pasic
  2016-09-30 14:19 ` [Qemu-devel] [PATCH 01/12] virtio: add VIRTIO_DEF_DEVICE_VMSD macro Halil Pasic
                   ` (12 more replies)
  0 siblings, 13 replies; 29+ messages in thread
From: Halil Pasic @ 2016-09-30 14:19 UTC (permalink / raw)
  To: qemu-devel
  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

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2016-10-06 11:09 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2016-10-03 10:04   ` Halil Pasic
2016-10-03 10:06     ` Paolo Bonzini

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.