]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/kvm/x86.c
Merge remote-tracking branch 'upstream' into next
[mirror_ubuntu-artful-kernel.git] / arch / x86 / kvm / x86.c
index a87c82aa3196112c97f48e15b38f5059f3371978..3ca90d74711dc244afe36ca3f01595a1a69b0fda 100644 (file)
@@ -925,6 +925,10 @@ static void kvm_write_wall_clock(struct kvm *kvm, gpa_t wall_clock)
         */
        getboottime(&boot);
 
+       if (kvm->arch.kvmclock_offset) {
+               struct timespec ts = ns_to_timespec(kvm->arch.kvmclock_offset);
+               boot = timespec_sub(boot, ts);
+       }
        wc.sec = boot.tv_sec;
        wc.nsec = boot.tv_nsec;
        wc.version = version;