Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-20 Thread Sean Christopherson
On Fri, Oct 20, 2023, Dongli Zhang wrote: > Hi Sean and Andrew, > > On 10/18/23 23:51, Andrew Jones wrote: > > On Wed, Oct 18, 2023 at 12:51:55PM -0700, Sean Christopherson wrote: > >> On Fri, Oct 06, 2023, Dongli Zhang wrote: > >>> As inspired by the discussion in [1], the boottime wallclock may

Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-20 Thread David Woodhouse
On Fri, 2023-10-20 at 07:39 -0700, Dongli Zhang wrote: > > 1. Capture boottime_wallclock_01. > 2. Wait for 10-second by default (configurable, e.g., max 60-second) > 3. Capture boottime_wallclock_02. > 4. Report error if drift. > > > I have another pvclock vCPU hotplug test with the same flow.

Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-20 Thread Dongli Zhang
Hi Sean and Andrew, On 10/18/23 23:51, Andrew Jones wrote: > On Wed, Oct 18, 2023 at 12:51:55PM -0700, Sean Christopherson wrote: >> On Fri, Oct 06, 2023, Dongli Zhang wrote: >>> As inspired by the discussion in [1], the boottime wallclock may drift due >>> to the fact that the masterclock (or hos

Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-18 Thread Andrew Jones
On Wed, Oct 18, 2023 at 12:51:55PM -0700, Sean Christopherson wrote: > On Fri, Oct 06, 2023, Dongli Zhang wrote: > > As inspired by the discussion in [1], the boottime wallclock may drift due > > to the fact that the masterclock (or host monotonic clock) and kvmclock are > > calculated based on the

Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-18 Thread Sean Christopherson
On Fri, Oct 06, 2023, Dongli Zhang wrote: > As inspired by the discussion in [1], the boottime wallclock may drift due > to the fact that the masterclock (or host monotonic clock) and kvmclock are > calculated based on the algorithms in different domains. > > This is to introduce a testcase to pri

Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-11 Thread Maxim Levitsky
У вт, 2023-10-10 у 09:31 -0700, Dongli Zhang пише: > Hi Maxim, > > On 10/10/23 09:13, Maxim Levitsky wrote: > > У пт, 2023-10-06 у 10:57 -0700, Dongli Zhang пише: > > > As inspired by the discussion in [1], the boottime wallclock may drift due > > > to the fact that the masterclock (or host monoto

Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-10 Thread Dongli Zhang
Hi Maxim, On 10/10/23 09:13, Maxim Levitsky wrote: > У пт, 2023-10-06 у 10:57 -0700, Dongli Zhang пише: >> As inspired by the discussion in [1], the boottime wallclock may drift due >> to the fact that the masterclock (or host monotonic clock) and kvmclock are >> calculated based on the algorithms

Re: [PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-10 Thread Maxim Levitsky
У пт, 2023-10-06 у 10:57 -0700, Dongli Zhang пише: > As inspired by the discussion in [1], the boottime wallclock may drift due > to the fact that the masterclock (or host monotonic clock) and kvmclock are > calculated based on the algorithms in different domains. > > This is to introduce a testca

[PATCH 1/1] selftests: KVM: add test to print boottime wallclock

2023-10-06 Thread Dongli Zhang
As inspired by the discussion in [1], the boottime wallclock may drift due to the fact that the masterclock (or host monotonic clock) and kvmclock are calculated based on the algorithms in different domains. This is to introduce a testcase to print the boottime wallclock periodically to help diagn