Re: [PATCH v8 7/7] KVM: x86: Expose TSC offset controls to userspace
From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2021-10-01 09:19:38
Also in:
kvm, kvmarm
From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2021-10-01 09:19:38
Also in:
kvm, kvmarm
On 30/09/21 21:14, Marcelo Tosatti wrote:
quoted
+ new_off_n = t_0 + off_n + (k_1 - k_0) * freq - t_1Hi Oliver, This won't advance the TSC values themselves, right?
Why not? It affects the TSC offset in the vmcs, so the TSC in the VM is advanced too. Paolo
This (advancing the TSC values by the realtime elapsed time) would be awesome because TSC clock_gettime() vdso is faster, and some applications prefer to just read from TSC directly. See "x86: kvmguest: use TSC clocksource if invariant TSC is exposed". The advancement with this patchset only applies to kvmclock.
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel