All of lore.kernel.org
 help / color / mirror / Atom feed
* Monotonic clock with KVM pv-clock
@ 2014-01-20  9:56 Nadav Har'El
  2014-01-20 13:33 ` Marcelo Tosatti
  0 siblings, 1 reply; 8+ messages in thread
From: Nadav Har'El @ 2014-01-20  9:56 UTC (permalink / raw)
  To: mtosatti, kvm

Hi,

I'm trying to figure out how a guest OS can get a monotonic clock using
KVM's paravirtual clock.

At first, I thought that the clock I get using KVM_SYSTEM_TIME is a
monotonic clock, based on the host's monotonic clock.
But I'm no longer sure this is actually done correctly:

1. What happens on live migration? On the new host, will the
   KVM_SYSTEM_TIME continue from the same point? Or will it jump because
   KVM_WALL_CLOCK (the wall time during boot) is different on the new host?

2. What happens when the wall-clock time is set on the host? I was
   hoping that only KVM_WALL_CLOCK changes and KVM_SYSTEM_TIME doesn't,
   but am no longer sure this is actually the case.

If KVM_SYSTEM_TIME is not a correct way to get a monotonic paravirtual clock
from KVM, is there a correct way?

Thanks,
Nadav.

-- 
Nadav Har'El                        |      Monday, Jan 20 2014, 19 Shevat 5774
nyh@math.technion.ac.il             |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |Diplomat: A man who always remembers a
http://nadav.harel.org.il           |woman's birthday but never her age.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-22 16:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-20  9:56 Monotonic clock with KVM pv-clock Nadav Har'El
2014-01-20 13:33 ` Marcelo Tosatti
2014-01-20 14:59   ` Fernando Luis Vazquez Cao
2014-01-21  0:19     ` Marcelo Tosatti
2014-01-21 14:23       ` Fernando Luis Vazquez Cao
2014-01-22 15:41         ` Marcelo Tosatti
2014-01-21 13:24   ` Nadav Har'El
2014-01-21 15:27     ` Marcelo Tosatti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.