[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/7] s390x/watchdog: diag288 migration support
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PULL 4/7] s390x/watchdog: diag288 migration support |
Date: |
Mon, 15 Jun 2015 14:00:28 +0200 |
From: Xu Wang <address@hidden>
Add vmstate structure to keep state and data during migration.
Signed-off-by: Xu Wang <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
Signed-off-by: Christian Borntraeger <address@hidden>
---
hw/watchdog/wdt_diag288.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/hw/watchdog/wdt_diag288.c b/hw/watchdog/wdt_diag288.c
index 351b5a8..1185e06 100644
--- a/hw/watchdog/wdt_diag288.c
+++ b/hw/watchdog/wdt_diag288.c
@@ -21,6 +21,17 @@ static WatchdogTimerModel model = {
.wdt_description = "diag288 device for s390x platform",
};
+static const VMStateDescription vmstate_diag288 = {
+ .name = "vmstate_diag288",
+ .version_id = 0,
+ .minimum_version_id = 0,
+ .fields = (VMStateField[]) {
+ VMSTATE_TIMER_PTR(timer, DIAG288State),
+ VMSTATE_BOOL(enabled, DIAG288State),
+ VMSTATE_END_OF_LIST()
+ }
+};
+
static void wdt_diag288_reset(DeviceState *dev)
{
DIAG288State *diag288 = DIAG288(dev);
@@ -90,6 +101,7 @@ static void wdt_diag288_class_init(ObjectClass *klass, void
*data)
dc->unrealize = wdt_diag288_unrealize;
dc->reset = wdt_diag288_reset;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
+ dc->vmsd = &vmstate_diag288;
diag288->handle_timer = wdt_diag288_handle_timer;
}
--
2.3.0
- [Qemu-devel] [PULL 0/7] s390x/kvm/bios/watchdog, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 4/7] s390x/watchdog: diag288 migration support,
Christian Borntraeger <=
- [Qemu-devel] [PULL 1/7] watchdog: change option wording to allow for more watchdogs, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 7/7] s390/bios: build with -fdelete-null-pointer-checks, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 6/7] watchdog: Add new Virtual Watchdog action INJECT-NMI, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 2/7] s390x/watchdog: introduce diag288 watchdog device, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 5/7] nmi: Implement inject_nmi() for non-monitor context use, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 3/7] s390x/kvm: diag288 instruction interception and handling, Christian Borntraeger, 2015/06/15
- Re: [Qemu-devel] [PULL 0/7] s390x/kvm/bios/watchdog, Peter Maydell, 2015/06/15