Re: [PATCH v2] um: time-travel: fix time corruption

2023-10-26 Thread Vincent Whitchurch
On Wed, 2023-10-25 at 22:45 +0200, Johannes Berg wrote: > From: Johannes Berg > > In 'basic' time-travel mode (without =inf-cpu or =ext), we > still get timer interrupts. These can happen at arbitrary > points in time, i.e. while in timer_read(), which pushes > time forward just a little bit. The

Re: [PATCH v2] um: time-travel: fix time corruption

2023-10-26 Thread Johannes Berg
On Thu, 2023-10-26 at 07:23 +, Vincent Whitchurch wrote: > > @@ -839,9 +863,7 @@ static u64 timer_read(struct clocksource *cs) > >  */ > >   if (!irqs_disabled() && !in_interrupt() && !in_softirq() && > >   !time_travel_ext_waiting) > > - ti

Re: [PATCH v2] um: time-travel: fix time corruption

2023-10-26 Thread Vincent Whitchurch
On Thu, 2023-10-26 at 09:38 +0200, Johannes Berg wrote: > On Thu, 2023-10-26 at 07:23 +, Vincent Whitchurch wrote: > > > @@ -839,9 +863,7 @@ static u64 timer_read(struct clocksource *cs) > > >   */ > > >   if (!irqs_disabled() && !in_interrupt() && !in_softirq() && > > >  

Re: [PATCH v2] um: time-travel: fix time corruption

2023-10-26 Thread Johannes Berg
On Thu, 2023-10-26 at 08:49 +, Vincent Whitchurch wrote: > On Thu, 2023-10-26 at 09:38 +0200, Johannes Berg wrote: > > On Thu, 2023-10-26 at 07:23 +, Vincent Whitchurch wrote: > > > > @@ -839,9 +863,7 @@ static u64 timer_read(struct clocksource *cs) > > > >  */ > > > >