Fix approach used for making PDs passive at run-time
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
The approach of using seL4_NBSendRecv in the event handler loop of libmicrokit when PDs essentially 'make' themselves passive by sending a message to the monitor is not ideal for multiple reasons.
- It will not scale/work in multi-core setups. Given that it is a non-blocking send, a scenario may occur where the monitor is already dealing with a message from one PD (meaning that it is not waiting on an endpoint) and another PD that wants to make itself passive on another core which means the message will be lost.
- It affects verification as it leads to assumptions needing to be made about the scheduling of the system.
This issue was found in the process of verifying the passive PD changes in Microkit.
The current proposed solution is to have synchronisation using notifications so that all PDs block until they receive a notification from the monitor that all PDs that needed to be converted to passive have completed. This means that no PDs start their init procedure until everything else in the system is also ready to start their init procedure. This should remove any concurrency issues such as what happens when a PD is in the middle of being converted to passive and another PD on a separate core tries to communicate with it, I believe this may lead to lost notifications.
This solution is not final as we have not implemented and evaluated it, however, from our internal discussions it I think it is the cleanest solution and should require minimal changes to Microkit.
- Lingua principale
- Rust
- Stelle
- 224
- Fork
- 90
- Merge medio
- 5g 7h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di seL4/microkit
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Manual contradicts the tool on three x86 `irq` attributes (confirmed on Microkit 2.3.0)Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
-
Update roadmap on seL4 wbsiteForse di nuovo libera @midnightveil l’ha presa 74 giorni fa e non c’è nessuna pull request aperta. Aperta
Tutte le issue di seL4/microkit
Issue simili
-
claim
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Nixitov/Riptide-Native#946 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ai-assistants documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
storytold/craft-libs#5594 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
听歌识曲历史跳转后对应音源界面无法返回Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
LingyunStudio/RustMusic#16 ·