[PATCH 3/4] um: time-travel: rework interrupt handling in ext mode

Johannes Berg johannes at sipsolutions.net
Tue Dec 15 04:50:46 EST 2020


On Tue, 2020-12-15 at 00:11 +0100, Johannes Berg wrote:
> On Mon, 2020-12-14 at 13:08 +0100, Johannes Berg wrote:
> > Add a um_request_irq_tt() function that let's a time-travel aware
> > driver request an interrupt with an additional timetravel_handler()
> > that is called outside of the context of the simulation, to handle
> > the message only. It then adds an event to the time-travel calendar
> > if necessary, and no "real" Linux code runs outside of the time
> > simulation.
> > 
> > This also hooks in with suspend/resume properly now,
> 
> Perhaps not. I think we need a separate signal handler in that case, so
> that we don't have all the lockdep et al machinery active.

Upon further thought - this only does some lockdep updates so it's
harmless, at least for now, and fixing it is very complex.

I'll leave it as is, but nonetheless found some issues in this patchset
and will send an update.

johannes




More information about the linux-um mailing list