Fix approach used for making PDs passive at run-time
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 224
- Forks
- 90
- Merge medio
- 5 d 7 h
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de seL4/microkit
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Manual contradicts the tool on three x86 `irq` attributes (confirmed on Microkit 2.3.0)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
-
Update roadmap on seL4 wbsiteQuizá libre de nuevo @midnightveil la tomó hace 74 días y no hay ningún pull request abierto. Abierto
Todos los issues de seL4/microkit
Issues similares
-
claim
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Nixitov/Riptide-Native#946 ·
Los mantenedores suelen responder en 1 día
-
area: ai-assistants documentation help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
BetaBots-LLC/latticegate#17 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
storytold/craft-libs#5594 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
听歌识曲历史跳转后对应音源界面无法返回Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
LingyunStudio/RustMusic#16 ·