⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ioemu-save-restore-timer

📁 xen虚拟机源代码安装包
💻
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -