Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-process tear free split-lock emulation can't be implemented without kernel support (or TME) #3948

Open
Sonicadvance1 opened this issue Aug 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Sonicadvance1
Copy link
Member

In order to correctly handle split-lock emulation, we need a global mutex. We could easily get this through FEXServer handing a shared page to all FEXInterpreter instances.

The problem with this is that if a process dies when one of its threads is handling a split-lock (Or cross-16byte boundary atomic) then the mutex will be permanently set. Effectively hanging every running FEXInterpreter process on the system.

There's no way to work around this in a tear-free fashion and also never have hangs. It /needs/ to be done in the kernel.

The "alternative" and preferred approach would be if all ARM vendors just support TME, but that's never going to occur.

As for starting the discussion with the ARM kernel maintainers for getting this supported upstream...
nope

@Sonicadvance1 Sonicadvance1 added the bug Something isn't working label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant