Please sign in to comment.
tcg: Make tb_flush() thread safe
Use async_safe_run_on_cpu() to make tb_flush() thread safe. This is possible now that code generation does not happen in the middle of execution. It can happen that multiple threads schedule a safe work to flush the translation buffer. To keep statistics and debugging output sane, always check if the translation buffer has already been flushed. Signed-off-by: Sergey Fedorov <email@example.com> Signed-off-by: Sergey Fedorov <firstname.lastname@example.org> [AJB: minor re-base fixes] Signed-off-by: Alex Bennée <email@example.com> Message-Id: <firstname.lastname@example.org> Reviewed-by: Richard Henderson <email@example.com> Signed-off-by: Paolo Bonzini <firstname.lastname@example.org>
- Loading branch information...
Showing with 31 additions and 23 deletions.