From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfnMF-0002jr-Qg for qemu-devel@nongnu.org; Fri, 02 Sep 2016 08:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfnMA-0000dJ-Ha for qemu-devel@nongnu.org; Fri, 02 Sep 2016 08:14:06 -0400 Message-ID: <1472818424.2313.1.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Fri, 02 Sep 2016 22:13:44 +1000 In-Reply-To: <87vayekaxy.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> References: <1472797976-24210-1-git-send-email-nikunj@linux.vnet.ibm.com> <1472800761.9620.6.camel@kernel.crashing.org> <87vayekaxy.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH RFC 0/4] Enable MTTCG on PowerPC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikunj A Dadhania , qemu-ppc@nongnu.org, alex.bennee@linaro.org, david@gibson.dropbear.id.au, rth@twiddle.net Cc: qemu-devel@nongnu.org On Fri, 2016-09-02 at 13:09 +0530, Nikunj A Dadhania wrote: > Benjamin Herrenschmidt writes: >=20 > >=20 > > On Fri, 2016-09-02 at 12:02 +0530, Nikunj A Dadhania wrote: > > >=20 > > > The series is a first attempt at enabling Multi-Threaded TCG on > > > PowerPC. > > > Changes that were needed to enable PowerPC are pretty simple; > > >=20 > > > Patch 01: Take a iothread lock during hcall, as hcall can > > > generate io requests > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A002: For TCG, we were harcoding = smt as 1, this gets rid of > > > the limitation > >=20 > > If we do this, we need to implement the shared SPRs properly >=20 > Sure, will have a look at it. My idea was to have a bitmap of SPRs that are shared. When hitting a shared one, after a write, we call a helper that "sync" the update to all the other threads using run_on_cpu. > >=20 > > and the inter-thread doorbells... >=20 > You mean the below ? >=20 > >=20 > > >=20 > > > TODO > > > =3D=3D=3D=3D > > > Implement msgsndp instructions(door-bell), newer kernels enable > > > it=C2=A0 > > > depending on the PVR. I have been using following workaround to > > > boot. > > > https://github.com/nikunjad/qemu/commit/2c10052c5f93418a6b920e6ba > > > 3ce1813fcf50bc4 >=20 > Regards, > Nikunj