Home
last modified time | relevance | path

Searched refs:wall_nsec (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/x86/kvm/
H A Dxen.c44 u64 wall_nsec; in kvm_xen_shared_info_init() local
62 wall_nsec = ktime_get_real_ns() - get_kvmclock_ns(kvm); in kvm_xen_shared_info_init()
101 wc->nsec = do_div(wall_nsec, 1000000000); in kvm_xen_shared_info_init()
102 wc->sec = (u32)wall_nsec; in kvm_xen_shared_info_init()
103 *wc_sec_hi = wall_nsec >> 32; in kvm_xen_shared_info_init()
H A Dx86.c2320 u64 wall_nsec; in kvm_write_wall_clock() local
2342 wall_nsec = ktime_get_real_ns() - get_kvmclock_ns(kvm); in kvm_write_wall_clock()
2344 wc.nsec = do_div(wall_nsec, 1000000000); in kvm_write_wall_clock()
2345 wc.sec = (u32)wall_nsec; /* overflow in 2106 guest time */ in kvm_write_wall_clock()
2351 wc_sec_hi = wall_nsec >> 32; in kvm_write_wall_clock()