From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Vd1-0006my-Hh for qemu-devel@nongnu.org; Mon, 15 Jun 2015 10:44:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4Vct-0005Rk-4o for qemu-devel@nongnu.org; Mon, 15 Jun 2015 10:44:44 -0400 Received: from mxout-1k.itc.hs-rm.de ([195.72.102.133]:55305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Vcs-0005Qa-Ql for qemu-devel@nongnu.org; Mon, 15 Jun 2015 10:44:39 -0400 Message-ID: <557EE4D2.5010202@hs-rm.de> Date: Mon, 15 Jun 2015 16:44:34 +0200 From: =?UTF-8?B?QWxleCBaw7xwa2U=?= MIME-Version: 1.0 References: <557B0B21.2030009@hs-rm.de> In-Reply-To: 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: Peter Maydell Cc: QEMU Developers Hi Peter, Am 12.06.2015 um 20:03 schrieb Peter Maydell: > On 12 June 2015 at 17:38, Alex Z=C3=BCpke w= rote: >> Hi, >> >> I'm benchmarking some IPI (=3D=3D inter-processor-interrupt) synchroni= zation stuff of my custom kernel on QEMU ARM (qemu-system-arm -M vexpress= -a15 -smp 2) and ran into the following problem: pending IPIs are delayed= until the QEMU main loop receives an event (for example the timer interr= upt expires or I press a key on the console). >> >> The following timing diagram tries to show this: >> >> CPU #0 CPU #1 >> =3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D >> ... other stuff ... WFI (wait for interrupt, like x86 "HLT"= ) >> send SGI in MPCore >> polls for completeness >>