Hi,

I can't see such a race window given that most qemu code runs
serialized anyway.  If you call assign_fd_handlers() +
set_write_fd_action(false) in sequence I can't see how a select call
can happen inbetween ...

Not today, but later when we have threads doing this stuff?

Unlikely I think. Seems we will go offload specific tasks to threads using threadlets (especially in the block layer), but I expect the main even loop will not be splitted into multiple threads.

 Should I
just leave a comment to take care of this for later?

Thats fine I guess. Or maybe add arguments to assign_fd_handlers() with the initial state.

cheers,
  Gerd


Reply via email to