[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-2.4 8/8] virtio-ccw: migrate ->revision
From: |
Cornelia Huck |
Subject: |
[Qemu-devel] [PATCH for-2.4 8/8] virtio-ccw: migrate ->revision |
Date: |
Fri, 26 Jun 2015 12:47:34 +0200 |
We need to migrate the revision field as well. No compatibility
concerns as we already introduced migration of ->config_vector in
this release.
Signed-off-by: Cornelia Huck <address@hidden>
---
hw/s390x/virtio-ccw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index 9dc9bbe..566aba8 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -1473,6 +1473,7 @@ static void virtio_ccw_save_config(DeviceState *d,
QEMUFile *f)
qemu_put_be16(f, vdev->config_vector);
qemu_put_be64(f, dev->routes.adapter.ind_offset);
qemu_put_byte(f, dev->thinint_isc);
+ qemu_put_be32(f, dev->revision);
}
static int virtio_ccw_load_config(DeviceState *d, QEMUFile *f)
@@ -1513,6 +1514,7 @@ static int virtio_ccw_load_config(DeviceState *d,
QEMUFile *f)
dev->thinint_isc, true, false,
&dev->routes.adapter.adapter_id);
}
+ dev->revision = qemu_get_be32(f);
return 0;
}
--
2.4.5
- [Qemu-devel] [PATCH for-2.4 0/8] s390x patches for 2.4, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 2/8] css: mss/mcss-e vs. migration, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 5/8] s390x/css: Add a callback for when subchannel gets disabled, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 1/8] virtio-ccw: complete handling of guest-initiated resets, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 3/8] s390-ccw.img: Consume service interrupts, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 6/8] s390x/virtio-ccw: add virtio set-revision call, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 4/8] s390-ccw.img: update, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 7/8] s390x/virtio-ccw: support virtio-1 set_vq format, Cornelia Huck, 2015/06/26
- [Qemu-devel] [PATCH for-2.4 8/8] virtio-ccw: migrate ->revision,
Cornelia Huck <=