userland/arch/aarch64/inline_asm/futex_sev.cpp

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-01-14 00:00:02 +00:00
parent fbc757aa57
commit d29a07ddad
3 changed files with 40 additions and 0 deletions

View File

@@ -18804,6 +18804,10 @@ so we conclude that:
Therefore, a WFE in userland is treated much like a busy loop by the Linux kernel: the kernel does not seem to try and explicitly make up room for other processes as would happen on a futex.
The following test checks that SEV events don't wake up a futexes, running forever in case of success. In <<gem5-syscall-emulation-multithreading>>, this is crucial to prevent deadlocks:
* link:userland/arch/aarch64/inline_asm/futex_sev.cpp[]
====== ARMv8 spinlock pattern
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka16277.html