Question about cross core IPC
Yuxin Ren
ryx at gwmail.gwu.edu
Sun Jun 1 15:15:06 CEST 2014
Hi
I am learning the IPC code in the Fiasco kernel. I have some questions here.
If the receiver is not ready, we will add the sender to the sender_list.
But I did find any lock to protect the sender_list. So if two threads at
different cores try to add themselves to the sender_list at the same time,
how can we guarantee the we are safe to do so?
When sender and receiver are at different cores, we have to use IPI to
communicate. Where is the code on IPC path to use IPI? I imagine the code
around IPI should be complex, so it is great if someone can tell me the
logic about it, especially about how we protect data structures, using
locks or any other lock-free algorithm.
Thank you very much.
Best
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20140601/12d8123d/attachment.html>
More information about the l4-hackers
mailing list