Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 1 | /* |
| 2 | * QEMU KVM support, paravirtual clock device |
| 3 | * |
| 4 | * Copyright (C) 2011 Siemens AG |
| 5 | * |
| 6 | * Authors: |
| 7 | * Jan Kiszka <jan.kiszka@siemens.com> |
| 8 | * |
| 9 | * This work is licensed under the terms of the GNU GPL version 2. |
| 10 | * See the COPYING file in the top-level directory. |
| 11 | * |
Paolo Bonzini | 6b620ca | 2012-01-13 17:44:23 +0100 | [diff] [blame] | 12 | * Contributions after 2012-01-13 are licensed under the terms of the |
| 13 | * GNU GPL, version 2 or (at your option) any later version. |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 14 | */ |
| 15 | |
Peter Maydell | b6a0aa0 | 2016-01-26 18:17:03 +0000 | [diff] [blame] | 16 | #include "qemu/osdep.h" |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 17 | #include "qemu-common.h" |
Paolo Bonzini | 33c1187 | 2016-03-15 16:58:45 +0100 | [diff] [blame] | 18 | #include "cpu.h" |
Alexander Graf | 9a48bcd | 2014-09-05 10:52:45 -0300 | [diff] [blame] | 19 | #include "qemu/host-utils.h" |
Paolo Bonzini | 9c17d61 | 2012-12-17 18:20:04 +0100 | [diff] [blame] | 20 | #include "sysemu/sysemu.h" |
| 21 | #include "sysemu/kvm.h" |
Denis Plotnikov | e2b6c17 | 2017-05-29 13:49:04 +0300 | [diff] [blame] | 22 | #include "sysemu/hw_accel.h" |
Liang Li | 0fd7e09 | 2015-11-05 11:51:03 +0800 | [diff] [blame] | 23 | #include "kvm_i386.h" |
Jan Kiszka | 3b9a6ee | 2011-10-15 10:01:27 +0200 | [diff] [blame] | 24 | #include "hw/sysbus.h" |
| 25 | #include "hw/kvm/clock.h" |
Eduardo Habkost | ca2edcd | 2017-03-09 15:50:46 -0300 | [diff] [blame] | 26 | #include "qapi/error.h" |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 27 | |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 28 | #include <linux/kvm.h> |
| 29 | #include <linux/kvm_para.h> |
| 30 | |
Hu Tao | 98bdc0d | 2013-07-01 18:18:38 +0800 | [diff] [blame] | 31 | #define TYPE_KVM_CLOCK "kvmclock" |
| 32 | #define KVM_CLOCK(obj) OBJECT_CHECK(KVMClockState, (obj), TYPE_KVM_CLOCK) |
| 33 | |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 34 | typedef struct KVMClockState { |
Hu Tao | 98bdc0d | 2013-07-01 18:18:38 +0800 | [diff] [blame] | 35 | /*< private >*/ |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 36 | SysBusDevice busdev; |
Hu Tao | 98bdc0d | 2013-07-01 18:18:38 +0800 | [diff] [blame] | 37 | /*< public >*/ |
| 38 | |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 39 | uint64_t clock; |
| 40 | bool clock_valid; |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 41 | |
| 42 | /* whether machine type supports reliable KVM_GET_CLOCK */ |
| 43 | bool mach_use_reliable_get_clock; |
| 44 | |
| 45 | /* whether the 'clock' value was obtained in a host with |
| 46 | * reliable KVM_GET_CLOCK */ |
| 47 | bool clock_is_reliable; |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 48 | } KVMClockState; |
| 49 | |
Alexander Graf | 9a48bcd | 2014-09-05 10:52:45 -0300 | [diff] [blame] | 50 | struct pvclock_vcpu_time_info { |
| 51 | uint32_t version; |
| 52 | uint32_t pad0; |
| 53 | uint64_t tsc_timestamp; |
| 54 | uint64_t system_time; |
| 55 | uint32_t tsc_to_system_mul; |
| 56 | int8_t tsc_shift; |
| 57 | uint8_t flags; |
| 58 | uint8_t pad[2]; |
| 59 | } __attribute__((__packed__)); /* 32 bytes */ |
| 60 | |
| 61 | static uint64_t kvmclock_current_nsec(KVMClockState *s) |
| 62 | { |
| 63 | CPUState *cpu = first_cpu; |
| 64 | CPUX86State *env = cpu->env_ptr; |
Jim Somerville | 346b121 | 2017-09-29 12:00:19 -0400 | [diff] [blame] | 65 | hwaddr kvmclock_struct_pa; |
Alexander Graf | 9a48bcd | 2014-09-05 10:52:45 -0300 | [diff] [blame] | 66 | uint64_t migration_tsc = env->tsc; |
| 67 | struct pvclock_vcpu_time_info time; |
| 68 | uint64_t delta; |
| 69 | uint64_t nsec_lo; |
| 70 | uint64_t nsec_hi; |
| 71 | uint64_t nsec; |
| 72 | |
Denis Plotnikov | e2b6c17 | 2017-05-29 13:49:04 +0300 | [diff] [blame] | 73 | cpu_synchronize_state(cpu); |
| 74 | |
Alexander Graf | 9a48bcd | 2014-09-05 10:52:45 -0300 | [diff] [blame] | 75 | if (!(env->system_time_msr & 1ULL)) { |
| 76 | /* KVM clock not active */ |
| 77 | return 0; |
| 78 | } |
| 79 | |
Jim Somerville | 346b121 | 2017-09-29 12:00:19 -0400 | [diff] [blame] | 80 | kvmclock_struct_pa = env->system_time_msr & ~1ULL; |
Alexander Graf | 9a48bcd | 2014-09-05 10:52:45 -0300 | [diff] [blame] | 81 | cpu_physical_memory_read(kvmclock_struct_pa, &time, sizeof(time)); |
| 82 | |
| 83 | assert(time.tsc_timestamp <= migration_tsc); |
| 84 | delta = migration_tsc - time.tsc_timestamp; |
| 85 | if (time.tsc_shift < 0) { |
| 86 | delta >>= -time.tsc_shift; |
| 87 | } else { |
| 88 | delta <<= time.tsc_shift; |
| 89 | } |
| 90 | |
| 91 | mulu64(&nsec_lo, &nsec_hi, delta, time.tsc_to_system_mul); |
| 92 | nsec = (nsec_lo >> 32) | (nsec_hi << 32); |
| 93 | return nsec + time.system_time; |
| 94 | } |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 95 | |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 96 | static void kvm_update_clock(KVMClockState *s) |
| 97 | { |
| 98 | struct kvm_clock_data data; |
| 99 | int ret; |
| 100 | |
| 101 | ret = kvm_vm_ioctl(kvm_state, KVM_GET_CLOCK, &data); |
| 102 | if (ret < 0) { |
| 103 | fprintf(stderr, "KVM_GET_CLOCK failed: %s\n", strerror(ret)); |
| 104 | abort(); |
| 105 | } |
| 106 | s->clock = data.clock; |
| 107 | |
| 108 | /* If kvm_has_adjust_clock_stable() is false, KVM_GET_CLOCK returns |
| 109 | * essentially CLOCK_MONOTONIC plus a guest-specific adjustment. This |
| 110 | * can drift from the TSC-based value that is computed by the guest, |
| 111 | * so we need to go through kvmclock_current_nsec(). If |
| 112 | * kvm_has_adjust_clock_stable() is true, and the flags contain |
| 113 | * KVM_CLOCK_TSC_STABLE, then KVM_GET_CLOCK returns a TSC-based value |
| 114 | * and kvmclock_current_nsec() is not necessary. |
| 115 | * |
| 116 | * Here, however, we need not check KVM_CLOCK_TSC_STABLE. This is because: |
| 117 | * |
| 118 | * - if the host has disabled the kvmclock master clock, the guest already |
| 119 | * has protection against time going backwards. This "safety net" is only |
| 120 | * absent when kvmclock is stable; |
| 121 | * |
| 122 | * - therefore, we can replace a check like |
| 123 | * |
| 124 | * if last KVM_GET_CLOCK was not reliable then |
| 125 | * read from memory |
| 126 | * |
| 127 | * with |
| 128 | * |
| 129 | * if last KVM_GET_CLOCK was not reliable && masterclock is enabled |
| 130 | * read from memory |
| 131 | * |
| 132 | * However: |
| 133 | * |
| 134 | * - if kvm_has_adjust_clock_stable() returns false, the left side is |
| 135 | * always true (KVM_GET_CLOCK is never reliable), and the right side is |
| 136 | * unknown (because we don't have data.flags). We must assume it's true |
| 137 | * and read from memory. |
| 138 | * |
| 139 | * - if kvm_has_adjust_clock_stable() returns true, the result of the && |
| 140 | * is always false (masterclock is enabled iff KVM_GET_CLOCK is reliable) |
| 141 | * |
| 142 | * So we can just use this instead: |
| 143 | * |
| 144 | * if !kvm_has_adjust_clock_stable() then |
| 145 | * read from memory |
| 146 | */ |
| 147 | s->clock_is_reliable = kvm_has_adjust_clock_stable(); |
| 148 | } |
| 149 | |
Luiz Capitulino | 1dfb4dd | 2011-07-29 14:26:33 -0300 | [diff] [blame] | 150 | static void kvmclock_vm_state_change(void *opaque, int running, |
| 151 | RunState state) |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 152 | { |
| 153 | KVMClockState *s = opaque; |
Stefan Weil | e76d05c | 2013-09-17 22:39:55 +0200 | [diff] [blame] | 154 | CPUState *cpu; |
Eric B Munson | f349c12 | 2012-04-07 06:17:47 +0530 | [diff] [blame] | 155 | int cap_clock_ctrl = kvm_check_extension(kvm_state, KVM_CAP_KVMCLOCK_CTRL); |
| 156 | int ret; |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 157 | |
| 158 | if (running) { |
Christian Borntraeger | 5e0b7d8 | 2014-10-14 11:55:49 +0200 | [diff] [blame] | 159 | struct kvm_clock_data data = {}; |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 160 | |
| 161 | /* |
| 162 | * If the host where s->clock was read did not support reliable |
| 163 | * KVM_GET_CLOCK, read kvmclock value from memory. |
| 164 | */ |
| 165 | if (!s->clock_is_reliable) { |
| 166 | uint64_t pvclock_via_mem = kvmclock_current_nsec(s); |
| 167 | /* We can't rely on the saved clock value, just discard it */ |
| 168 | if (pvclock_via_mem) { |
| 169 | s->clock = pvclock_via_mem; |
| 170 | } |
| 171 | } |
Marcelo Tosatti | 00f4d64 | 2013-06-18 20:38:25 -0300 | [diff] [blame] | 172 | |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 173 | s->clock_valid = false; |
Eric B Munson | f349c12 | 2012-04-07 06:17:47 +0530 | [diff] [blame] | 174 | |
Marcelo Tosatti | 00f4d64 | 2013-06-18 20:38:25 -0300 | [diff] [blame] | 175 | data.clock = s->clock; |
Marcelo Tosatti | 00f4d64 | 2013-06-18 20:38:25 -0300 | [diff] [blame] | 176 | ret = kvm_vm_ioctl(kvm_state, KVM_SET_CLOCK, &data); |
| 177 | if (ret < 0) { |
| 178 | fprintf(stderr, "KVM_SET_CLOCK failed: %s\n", strerror(ret)); |
| 179 | abort(); |
| 180 | } |
| 181 | |
Eric B Munson | f349c12 | 2012-04-07 06:17:47 +0530 | [diff] [blame] | 182 | if (!cap_clock_ctrl) { |
| 183 | return; |
| 184 | } |
Andreas Färber | bdc4464 | 2013-06-24 23:50:24 +0200 | [diff] [blame] | 185 | CPU_FOREACH(cpu) { |
Andreas Färber | 182735e | 2013-05-29 22:29:20 +0200 | [diff] [blame] | 186 | ret = kvm_vcpu_ioctl(cpu, KVM_KVMCLOCK_CTRL, 0); |
Eric B Munson | f349c12 | 2012-04-07 06:17:47 +0530 | [diff] [blame] | 187 | if (ret) { |
| 188 | if (ret != -EINVAL) { |
| 189 | fprintf(stderr, "%s: %s\n", __func__, strerror(-ret)); |
| 190 | } |
| 191 | return; |
| 192 | } |
| 193 | } |
Marcelo Tosatti | 00f4d64 | 2013-06-18 20:38:25 -0300 | [diff] [blame] | 194 | } else { |
Marcelo Tosatti | 00f4d64 | 2013-06-18 20:38:25 -0300 | [diff] [blame] | 195 | |
| 196 | if (s->clock_valid) { |
| 197 | return; |
| 198 | } |
Marcelo Tosatti | 317b0a6 | 2014-09-05 10:52:47 -0300 | [diff] [blame] | 199 | |
Liang Li | 0fd7e09 | 2015-11-05 11:51:03 +0800 | [diff] [blame] | 200 | kvm_synchronize_all_tsc(); |
Eduardo Habkost | 1154d84 | 2014-11-03 15:45:34 -0200 | [diff] [blame] | 201 | |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 202 | kvm_update_clock(s); |
Marcelo Tosatti | 00f4d64 | 2013-06-18 20:38:25 -0300 | [diff] [blame] | 203 | /* |
| 204 | * If the VM is stopped, declare the clock state valid to |
| 205 | * avoid re-reading it on next vmsave (which would return |
| 206 | * a different value). Will be reset when the VM is continued. |
| 207 | */ |
| 208 | s->clock_valid = true; |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 209 | } |
| 210 | } |
| 211 | |
Hu Tao | 913bc63 | 2013-07-01 18:18:39 +0800 | [diff] [blame] | 212 | static void kvmclock_realize(DeviceState *dev, Error **errp) |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 213 | { |
Hu Tao | 98bdc0d | 2013-07-01 18:18:38 +0800 | [diff] [blame] | 214 | KVMClockState *s = KVM_CLOCK(dev); |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 215 | |
Eduardo Habkost | ca2edcd | 2017-03-09 15:50:46 -0300 | [diff] [blame] | 216 | if (!kvm_enabled()) { |
| 217 | error_setg(errp, "kvmclock device requires KVM"); |
| 218 | return; |
| 219 | } |
| 220 | |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 221 | kvm_update_clock(s); |
| 222 | |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 223 | qemu_add_vm_change_state_handler(kvmclock_vm_state_change, s); |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 224 | } |
| 225 | |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 226 | static bool kvmclock_clock_is_reliable_needed(void *opaque) |
| 227 | { |
| 228 | KVMClockState *s = opaque; |
| 229 | |
| 230 | return s->mach_use_reliable_get_clock; |
| 231 | } |
| 232 | |
| 233 | static const VMStateDescription kvmclock_reliable_get_clock = { |
| 234 | .name = "kvmclock/clock_is_reliable", |
| 235 | .version_id = 1, |
| 236 | .minimum_version_id = 1, |
| 237 | .needed = kvmclock_clock_is_reliable_needed, |
| 238 | .fields = (VMStateField[]) { |
| 239 | VMSTATE_BOOL(clock_is_reliable, KVMClockState), |
| 240 | VMSTATE_END_OF_LIST() |
| 241 | } |
| 242 | }; |
| 243 | |
| 244 | /* |
Michael Chapman | c2b01cf | 2018-04-06 15:34:06 +1000 | [diff] [blame] | 245 | * When migrating, assume the source has an unreliable |
| 246 | * KVM_GET_CLOCK unless told otherwise. |
| 247 | */ |
| 248 | static int kvmclock_pre_load(void *opaque) |
| 249 | { |
| 250 | KVMClockState *s = opaque; |
| 251 | |
| 252 | s->clock_is_reliable = false; |
| 253 | |
| 254 | return 0; |
| 255 | } |
| 256 | |
| 257 | /* |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 258 | * When migrating, read the clock just before migration, |
| 259 | * so that the guest clock counts during the events |
| 260 | * between: |
| 261 | * |
| 262 | * * vm_stop() |
| 263 | * * |
| 264 | * * pre_save() |
| 265 | * |
| 266 | * This reduces kvmclock difference on migration from 5s |
| 267 | * to 0.1s (when max_downtime == 5s), because sending the |
| 268 | * final pages of memory (which happens between vm_stop() |
| 269 | * and pre_save()) takes max_downtime. |
| 270 | */ |
Dr. David Alan Gilbert | 44b1ff3 | 2017-09-25 12:29:12 +0100 | [diff] [blame] | 271 | static int kvmclock_pre_save(void *opaque) |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 272 | { |
| 273 | KVMClockState *s = opaque; |
| 274 | |
| 275 | kvm_update_clock(s); |
Dr. David Alan Gilbert | 44b1ff3 | 2017-09-25 12:29:12 +0100 | [diff] [blame] | 276 | |
| 277 | return 0; |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 278 | } |
| 279 | |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 280 | static const VMStateDescription kvmclock_vmsd = { |
| 281 | .name = "kvmclock", |
| 282 | .version_id = 1, |
| 283 | .minimum_version_id = 1, |
Michael Chapman | c2b01cf | 2018-04-06 15:34:06 +1000 | [diff] [blame] | 284 | .pre_load = kvmclock_pre_load, |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 285 | .pre_save = kvmclock_pre_save, |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 286 | .fields = (VMStateField[]) { |
| 287 | VMSTATE_UINT64(clock, KVMClockState), |
| 288 | VMSTATE_END_OF_LIST() |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 289 | }, |
| 290 | .subsections = (const VMStateDescription * []) { |
| 291 | &kvmclock_reliable_get_clock, |
| 292 | NULL |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 293 | } |
| 294 | }; |
| 295 | |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 296 | static Property kvmclock_properties[] = { |
| 297 | DEFINE_PROP_BOOL("x-mach-use-reliable-get-clock", KVMClockState, |
| 298 | mach_use_reliable_get_clock, true), |
| 299 | DEFINE_PROP_END_OF_LIST(), |
| 300 | }; |
| 301 | |
Anthony Liguori | 999e12b | 2012-01-24 13:12:29 -0600 | [diff] [blame] | 302 | static void kvmclock_class_init(ObjectClass *klass, void *data) |
| 303 | { |
Anthony Liguori | 39bffca | 2011-12-07 21:34:16 -0600 | [diff] [blame] | 304 | DeviceClass *dc = DEVICE_CLASS(klass); |
Anthony Liguori | 999e12b | 2012-01-24 13:12:29 -0600 | [diff] [blame] | 305 | |
Hu Tao | 913bc63 | 2013-07-01 18:18:39 +0800 | [diff] [blame] | 306 | dc->realize = kvmclock_realize; |
Anthony Liguori | 39bffca | 2011-12-07 21:34:16 -0600 | [diff] [blame] | 307 | dc->vmsd = &kvmclock_vmsd; |
Marcelo Tosatti | 6053a86 | 2016-11-21 08:50:04 -0200 | [diff] [blame] | 308 | dc->props = kvmclock_properties; |
Anthony Liguori | 999e12b | 2012-01-24 13:12:29 -0600 | [diff] [blame] | 309 | } |
| 310 | |
Andreas Färber | 8c43a6f | 2013-01-10 16:19:07 +0100 | [diff] [blame] | 311 | static const TypeInfo kvmclock_info = { |
Hu Tao | 98bdc0d | 2013-07-01 18:18:38 +0800 | [diff] [blame] | 312 | .name = TYPE_KVM_CLOCK, |
Anthony Liguori | 39bffca | 2011-12-07 21:34:16 -0600 | [diff] [blame] | 313 | .parent = TYPE_SYS_BUS_DEVICE, |
| 314 | .instance_size = sizeof(KVMClockState), |
| 315 | .class_init = kvmclock_class_init, |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 316 | }; |
| 317 | |
| 318 | /* Note: Must be called after VCPU initialization. */ |
| 319 | void kvmclock_create(void) |
| 320 | { |
Andreas Färber | 182735e | 2013-05-29 22:29:20 +0200 | [diff] [blame] | 321 | X86CPU *cpu = X86_CPU(first_cpu); |
| 322 | |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 323 | if (kvm_enabled() && |
Andreas Färber | 182735e | 2013-05-29 22:29:20 +0200 | [diff] [blame] | 324 | cpu->env.features[FEAT_KVM] & ((1ULL << KVM_FEATURE_CLOCKSOURCE) | |
| 325 | (1ULL << KVM_FEATURE_CLOCKSOURCE2))) { |
Hu Tao | 98bdc0d | 2013-07-01 18:18:38 +0800 | [diff] [blame] | 326 | sysbus_create_simple(TYPE_KVM_CLOCK, -1, NULL); |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 327 | } |
| 328 | } |
| 329 | |
Andreas Färber | 83f7d43 | 2012-02-09 15:20:55 +0100 | [diff] [blame] | 330 | static void kvmclock_register_types(void) |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 331 | { |
Anthony Liguori | 39bffca | 2011-12-07 21:34:16 -0600 | [diff] [blame] | 332 | type_register_static(&kvmclock_info); |
Jan Kiszka | 0ec329d | 2011-02-07 12:19:26 +0100 | [diff] [blame] | 333 | } |
| 334 | |
Andreas Färber | 83f7d43 | 2012-02-09 15:20:55 +0100 | [diff] [blame] | 335 | type_init(kvmclock_register_types) |