[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 6/7] goldfish_rtc: re-arm the alarm after migration
From: |
Laurent Vivier |
Subject: |
[PATCH v2 6/7] goldfish_rtc: re-arm the alarm after migration |
Date: |
Sun, 20 Dec 2020 12:26:14 +0100 |
After a migration the clock offset is updated, but we also
need to re-arm the alarm if needed.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
---
hw/rtc/goldfish_rtc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/rtc/goldfish_rtc.c b/hw/rtc/goldfish_rtc.c
index 0f4e8185a796..e07ff0164e0c 100644
--- a/hw/rtc/goldfish_rtc.c
+++ b/hw/rtc/goldfish_rtc.c
@@ -211,6 +211,8 @@ static int goldfish_rtc_post_load(void *opaque, int
version_id)
qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
s->tick_offset = s->tick_offset_vmstate - delta;
+ goldfish_rtc_set_alarm(s);
+
return 0;
}
--
2.29.2
- [PATCH v2 0/7] m68k: add Virtual M68k Machine, Laurent Vivier, 2020/12/20
- [PATCH v2 4/7] m68k: add an interrupt controller, Laurent Vivier, 2020/12/20
- [PATCH v2 1/7] m68k: import bootinfo headers from linux, Laurent Vivier, 2020/12/20
- [PATCH v2 3/7] intc: add goldfish-pic, Laurent Vivier, 2020/12/20
- [PATCH v2 7/7] m68k: add Virtual M68k Machine, Laurent Vivier, 2020/12/20
- [PATCH v2 6/7] goldfish_rtc: re-arm the alarm after migration,
Laurent Vivier <=
- [PATCH v2 2/7] char: add goldfish-tty, Laurent Vivier, 2020/12/20
- [PATCH v2 5/7] m68k: add a system controller, Laurent Vivier, 2020/12/20