From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1yzx-0007Hp-8r for qemu-devel@nongnu.org; Mon, 27 Feb 2012 06:44:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1yzo-0002ty-61 for qemu-devel@nongnu.org; Mon, 27 Feb 2012 06:44:09 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:26542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1yzo-0002td-0p for qemu-devel@nongnu.org; Mon, 27 Feb 2012 06:44:00 -0500 Received: from euspt1 (mailout2.w1.samsung.com [210.118.77.12]) by mailout2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0M0100M1AV980Q@mailout2.w1.samsung.com> for qemu-devel@nongnu.org; Mon, 27 Feb 2012 11:43:56 +0000 (GMT) Received: from [106.109.9.191] by spt1.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0M01002JMV97D7@spt1.w1.samsung.com> for qemu-devel@nongnu.org; Mon, 27 Feb 2012 11:43:56 +0000 (GMT) Date: Mon, 27 Feb 2012 15:43:53 +0400 From: Evgeny Voevodin In-reply-to: <1330340818-4125-1-git-send-email-e.voevodin@samsung.com> Message-id: <4F4B6C79.2060606@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <1330340818-4125-1-git-send-email-e.voevodin@samsung.com> Subject: Re: [Qemu-devel] [PATCH] TCG: Convert global variables to be TLS. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kyungmin.park@samsung.com, m.kozlov@samsung.com, i.mitsyanko@samsung.com, qemu-devel@nongnu.org, d.solodkiy@samsung.com On 27.02.2012 15:06, Evgeny Voevodin wrote: > > This patch converts some TCG data to be TLS on the way to make > TCG multithreaded. This work was made in assumption that qemu-tls.h defines > a general direction to let each VCPU run in its own thread wile being processed > by TCG. > > Evgeny Voevodin (1): > TCG: Convert global variables to be TLS. > > bsd-user/main.c | 1 + > cpus.c | 2 + > darwin-user/main.c | 1 + > exec.c | 121 ++++++++++++++++++++++++++++++--------------------- > linux-user/main.c | 1 + > qemu-common.h | 1 + > 6 files changed, 77 insertions(+), 50 deletions(-) > Just realised that the patch is buggy and does not work for -smp 1. Anyway, it is useful to get any suggestions on the general approach. -- Kind regards, Evgeny Voevodin, Leading Software Engineer, ASWG, Moscow R&D center, Samsung Electronics e-mail: e.voevodin@samsung.com