From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Wdc-0004jx-Jw for qemu-devel@nongnu.org; Mon, 15 Jun 2015 11:49:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4WdY-0003Gq-GY for qemu-devel@nongnu.org; Mon, 15 Jun 2015 11:49:28 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:33955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4WdY-0003Gm-Bi for qemu-devel@nongnu.org; Mon, 15 Jun 2015 11:49:24 -0400 Received: by oigx81 with SMTP id x81so2544800oig.1 for ; Mon, 15 Jun 2015 08:49:23 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <557EF0EB.70601@hs-rm.de> References: <557B0B21.2030009@hs-rm.de> <557EEA46.10507@hs-rm.de> <557EF0EB.70601@hs-rm.de> From: Peter Maydell Date: Mon, 15 Jun 2015 16:49:03 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Z=C3=BCpke?= Cc: QEMU Developers On 15 June 2015 at 16:36, Alex Z=C3=BCpke wrote= : > So this is the way to go: > > --- a/target-arm/translate.c > +++ b/target-arm/translate.c > @@ -4084,6 +4084,7 @@ static void gen_nop_hint(DisasContext *s, int val) > gen_set_pc_im(s, s->pc); > s->is_jmp =3D DISAS_WFI; > break; > + case 1: /* yield */ > case 2: /* wfe */ > gen_set_pc_im(s, s->pc); > s->is_jmp =3D DISAS_WFE; Actually I want to split out the yield code path from the wfe one, because some day we may actually implement WFE as WFE, at which point WFE has some trap-to-EL2 logic that YIELD doesn't. I was about to write a patch to do that... (If you plan to run your custom OS under a hypervisor you might prefer SEV/WFE over YIELD, because then if your custom OS is under heavy load the hypervisor has a chance to swap this vcpu out and run some other one.) thanks -- PMM