Can not bao run the linux with rt_patch #161
Replies: 4 comments 14 replies
-
i followed this guide and still can not login. i found that when a pl011 interrupt inject, maintenance interrupt occur and then guestos have no more response
|
Beta Was this translation helpful? Give feedback.
-
I have filed an issue (#162) and will try to replicate the issue and debug it on our side. Hopefully I'll come back to you soon |
Beta Was this translation helpful? Give feedback.
-
@LSVulnerable can you provide more information on what kernel version and other build settings you are using? As well as about your bao config? |
Beta Was this translation helpful? Give feedback.
-
I have found the issue. What happens is that linux-rt seems to disable an interrupt as soon as it receives it. Bao reacted to it by removing it from the list registers, but failed to keep information around that this interrupt was still active (in the spilled active list). The guest would then eoir the interrupt without enabling it, triggering a maintenance interrupt since it was not on the list registers. However, since Bao wasn't keeping this info around, it failed to eoir the hardware interrupt that was kept always active. I've managed a hot fix that simply keeps the active interrupt active in the list registers. Attached you will find the patch for it. However, I will have to look deeper into it to understand further implications of this issue and maybe come up with a more structured fix. Any ideas are welcomed.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I want to run linux with rt patches on bao. The previous build process was OK. The built image worked with qemu, but it didn't work in bao. I want to know why, pls.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions