Files
linux-stable-mirror/include/uapi/linux
Oliver Upton c68dc1b577 KVM: x86: Report host tsc and realtime values in KVM_GET_CLOCK
Handling the migration of TSCs correctly is difficult, in part because
Linux does not provide userspace with the ability to retrieve a (TSC,
realtime) clock pair for a single instant in time. In lieu of a more
convenient facility, KVM can report similar information in the kvm_clock
structure.

Provide userspace with a host TSC & realtime pair iff the realtime clock
is based on the TSC. If userspace provides KVM_SET_CLOCK with a valid
realtime value, advance the KVM clock by the amount of elapsed time. Do
not step the KVM clock backwards, though, as it is a monotonic
oscillator.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210916181538.968978-5-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-10-18 14:43:44 -04:00
..
2021-08-17 11:47:53 -04:00
2021-06-10 20:59:05 -04:00
2021-08-25 10:37:05 -07:00
2021-08-23 13:19:09 +02:00
2021-08-23 13:19:09 +02:00
2021-08-10 13:32:40 -04:00
2021-06-03 15:31:34 -07:00
2021-05-21 15:03:50 +02:00
2021-07-29 15:06:50 +01:00
2021-08-18 10:10:01 +01:00
2021-07-06 10:37:46 -05:00
2021-06-23 12:56:08 -07:00
2021-06-12 13:16:45 -07:00
2021-07-29 08:04:10 +02:00