Home
last modified time | relevance | path

Searched refs:wall_clock (Results 1 – 6 of 6) sorted by relevance

/arch/x86/kernel/
Dpvclock.c123 void pvclock_read_wallclock(struct pvclock_wall_clock *wall_clock, in pvclock_read_wallclock() argument
133 version = wall_clock->version; in pvclock_read_wallclock()
142 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock()
143 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
145 } while ((wall_clock->version & 1) || (version != wall_clock->version)); in pvclock_read_wallclock()
Dkvmclock.c51 static struct pvclock_wall_clock wall_clock __bss_decrypted;
63 wrmsrl(msr_kvm_wall_clock, slow_virt_to_phys(&wall_clock)); in kvm_get_wallclock()
65 pvclock_read_wallclock(&wall_clock, this_cpu_pvti(), now); in kvm_get_wallclock()
/arch/arm/xen/
Denlighten.c83 struct pvclock_wall_clock *wall_clock = &(s->wc); in xen_read_wallclock() local
87 version = wall_clock->version; in xen_read_wallclock()
89 now.tv_sec = ((uint64_t)wall_clock->sec_hi << 32) | wall_clock->sec; in xen_read_wallclock()
90 now.tv_nsec = wall_clock->nsec; in xen_read_wallclock()
92 } while ((wall_clock->version & 1) || (version != wall_clock->version)); in xen_read_wallclock()
/arch/x86/xen/
Dtime.c79 struct pvclock_wall_clock *wall_clock = &(s->wc); in xen_read_wallclock() local
83 pvclock_read_wallclock(wall_clock, vcpu_time, ts); in xen_read_wallclock()
/arch/x86/kvm/
Dx86.c2314 static void kvm_write_wall_clock(struct kvm *kvm, gpa_t wall_clock, int sec_hi_ofs) in kvm_write_wall_clock() argument
2322 if (!wall_clock) in kvm_write_wall_clock()
2325 r = kvm_read_guest(kvm, wall_clock, &version, sizeof(version)); in kvm_write_wall_clock()
2334 if (kvm_write_guest(kvm, wall_clock, &version, sizeof(version))) in kvm_write_wall_clock()
2348 kvm_write_guest(kvm, wall_clock, &wc, sizeof(wc)); in kvm_write_wall_clock()
2352 kvm_write_guest(kvm, wall_clock + sec_hi_ofs, in kvm_write_wall_clock()
2357 kvm_write_guest(kvm, wall_clock, &version, sizeof(version)); in kvm_write_wall_clock()
3814 vcpu->kvm->arch.wall_clock = data; in kvm_set_msr_common()
3821 vcpu->kvm->arch.wall_clock = data; in kvm_set_msr_common()
4195 msr_info->data = vcpu->kvm->arch.wall_clock; in kvm_get_msr_common()
[all …]
/arch/x86/include/asm/
Dkvm_host.h1301 gpa_t wall_clock; member