From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Ryy-0006Ow-QC for qemu-devel@nongnu.org; Fri, 12 Jun 2015 12:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3Ryv-0004Zl-K6 for qemu-devel@nongnu.org; Fri, 12 Jun 2015 12:39:04 -0400 Received: from mxout-1k.itc.hs-rm.de ([195.72.102.133]:51568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Ryv-0004VB-As for qemu-devel@nongnu.org; Fri, 12 Jun 2015 12:39:01 -0400 Received: from EXCHANGE-3K.hds.local (exchange-3k.itc.hs-rm.de [10.10.62.124]) by mxout-1k.itc.hs-rm.de (8.14.4/8.14.4) with ESMTP id t5CGcvUv002396 for ; Fri, 12 Jun 2015 18:38:57 +0200 (envelope-from Alexander.Zuepke@hs-rm.de) Message-ID: <557B0B21.2030009@hs-rm.de> Date: Fri, 12 Jun 2015 18:38:57 +0200 From: =?UTF-8?B?QWxleCBaw7xwa2U=?= MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [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: qemu-devel@nongnu.org Hi, I'm benchmarking some IPI (== inter-processor-interrupt) synchronization 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 interrupt expires or I press a key on the console). The following timing diagram tries to show this: CPU #0 CPU #1 ====== ====== ... other stuff ... WFI (wait for interrupt, like x86 "HLT") send SGI in MPCore polls for completeness