aboutsummaryrefslogtreecommitdiff
path: root/hw/kvmclock.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-02-07 12:19:26 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2011-02-14 12:43:09 -0200
commit0ec329dab938e2d97d12a91f8ed15fec27b325e0 (patch)
tree380012f1fda4003027243b35d4a811d2ec15f5c4 /hw/kvmclock.h
parent6a7af8cb04c345eb1ed9d95250ef3ad4400e65c5 (diff)
kvm: x86: Introduce kvmclock device to save/restore its state
If kvmclock is used, which implies the kernel supports it, register a kvmclock device with the sysbus. Its main purpose is to save and restore the kernel state on migration, but this will also allow to visualize it one day. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> CC: Glauber Costa <glommer@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'hw/kvmclock.h')
-rw-r--r--hw/kvmclock.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/hw/kvmclock.h b/hw/kvmclock.h
new file mode 100644
index 0000000000..7a83cbe8f6
--- /dev/null
+++ b/hw/kvmclock.h
@@ -0,0 +1,14 @@
+/*
+ * QEMU KVM support, paravirtual clock device
+ *
+ * Copyright (C) 2011 Siemens AG
+ *
+ * Authors:
+ * Jan Kiszka <jan.kiszka@siemens.com>
+ *
+ * This work is licensed under the terms of the GNU GPL version 2.
+ * See the COPYING file in the top-level directory.
+ *
+ */
+
+void kvmclock_create(void);