The previous version, though ideal, needs more work to enable calling start_exclusive() from cpu_exec() and also does not properly handle exception from atomic context. Exceptions in atomic context will not call exclusive_end() and would go to the outer most loop causing a deadlock.
The following patches allow proper handling of flags set and exceptions from the atomic exectuion context. Alex, please fold/squash them as you feel necessary. Pranith Kumar (2): tcg: Save cpu flags in atomic execution tcg: Set jmp_env to handle exceptions from atomic execution cpu-exec.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) -- 2.11.0