ioemu-save-restore-timer

来自「xen虚拟机源代码安装包」· 代码 · 共 28 行

TXT
28
字号
Index: ioemu/vl.c===================================================================--- ioemu.orig/vl.c	2007-05-03 19:25:11.000000000 +0100+++ ioemu/vl.c	2007-05-03 19:26:37.000000000 +0100@@ -915,10 +915,22 @@ #ifdef CONFIG_DM static void timer_save(QEMUFile *f, void *opaque) {+    /* need timer for save/restoe qemu_timer in usb_uhci */+    if (cpu_ticks_enabled) {+        hw_error("cannot save state if virtual timers are running");+    }+    qemu_put_be64s(f, &cpu_clock_offset); }  static int timer_load(QEMUFile *f, void *opaque, int version_id) {+    if (version_id != 1)+        return -EINVAL;+    if (cpu_ticks_enabled) {+        return -EINVAL;+    }++    qemu_get_be64s(f, &cpu_clock_offset);     return 0; } #else  /* !CONFIG_DM */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?