From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoCIH-0003gb-IV for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoCID-0003FE-CW for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:56:29 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:33488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoCID-0003F8-4S for qemu-devel@nongnu.org; Thu, 07 Apr 2016 11:56:25 -0400 Received: by mail-lf0-x231.google.com with SMTP id e190so58530843lfe.0 for ; Thu, 07 Apr 2016 08:56:24 -0700 (PDT) References: <1460044433-19282-1-git-send-email-sergey.fedorov@linaro.org> From: Sergey Fedorov Message-ID: <57068326.10509@gmail.com> Date: Thu, 7 Apr 2016 18:56:22 +0300 MIME-Version: 1.0 In-Reply-To: <1460044433-19282-1-git-send-email-sergey.fedorov@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [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: Sergey Fedorov , qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Peter Crosthwaite On 07/04/16 18:53, Sergey Fedorov wrote: > 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 > Sorry, the first two patches got there by mistake... Kind regards, Sergey