dramforever / opensbi-h

WIP: A fork of OpenSBI, with software-emulated hypervisor extension support
Other
34 stars 6 forks source link

External interrupt preemption #2

Open dramforever opened 2 years ago

dramforever commented 2 years ago

Currently we do nothing about the hardware PLIC when in VS/VU-mode, which means that when an external interrupt occurs for the PLIC, it only knows to appear in mip.SEIP. In this case:

For now, Linux just happens to work because the guest is eventually preempted anyway. But this could be causing all sorts of correctness and performance issues.