Received: from eggs.gnu.org ([2001:4830:134:3::10]:56724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoCGu-0001A3-N2 for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:55:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoCGo-0002kz-Sb for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:55:04 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:34325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoCGo-0002kd-9H for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:54:58 -0400 Received: by mail-lf0-x231.google.com with SMTP id j11so60137220lfb.1 for ; Thu, 07 Apr 2016 08:54:58 -0700 (PDT) From: Sergey Fedorov Date: Thu, 7 Apr 2016 18:53:42 +0300 Message-Id: <1460044433-19282-1-git-send-email-sergey.fedorov@linaro.org> Subject: [Qemu-devel] [PATCH 00/11] tcg: Make direct jump patching thread-safe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sergey Fedorov , Richard Henderson , Peter Crosthwaite , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini From: Sergey Fedorov When patching translated code for direct block chaining/unchaining, modification of concurrently executing code can happen in multi-threaded execution. Currently only user-mode is affected. To make direct block patching safe, some care must be taken to make sure that the code modification is made atomic and concurrently executed code is guaranteed to be consistent. This patch series fixes all supported TCG targets using direct patching and documents the requirement for direct jump patching be atomic and thread-safe. The series' tree can be found in a public git repository [1]. [1] https://github.com/sergefdrv/qemu/tree/atomic-tb-patching Sergey Fedorov (10): pc-bios/s390-ccw: Use correct strip when cross-compiling tci: Make direct jump patching thread-safe tcg/ppc: Make direct jump patching thread-safe tcg/i386: Make direct jump patching thread-safe tcg/s390: Make direct jump patching thread-safe tcg/arm: Make direct jump patching thread-safe tcg/aarch64: Make direct jump patching thread-safe tcg/sparc: Make direct jump patching thread-safe tcg/mips: Make direct jump patching thread-safe tcg: Note requirement on atomic direct jump patching Stefan Weil (1): tci: Fix build regression include/exec/exec-all.h | 32 ++++++------------------------ pc-bios/s390-ccw/Makefile | 2 +- tcg/aarch64/tcg-target.inc.c | 14 +++++++++++++- tcg/arm/tcg-target.inc.c | 17 ++++++++++++++++ tcg/i386/tcg-target.inc.c | 17 ++++++++++++++++ tcg/mips/tcg-target.inc.c | 3 ++- tcg/ppc/tcg-target.inc.c | 22 +++++++++++++++++---- tcg/s390/tcg-target.inc.c | 6 ++++++ tcg/sparc/tcg-target.inc.c | 2 +- tcg/tci/tcg-target.inc.c | 2 ++ tci.c | 46 +++++++++++++++++++++++++------------------- translate-all.c | 2 ++ 12 files changed, 111 insertions(+), 54 deletions(-) -- 2.8.1