From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlFPW-0008PG-M4 for qemu-devel@nongnu.org; Thu, 23 Apr 2015 07:35:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlFPQ-0002Bp-Rz for qemu-devel@nongnu.org; Thu, 23 Apr 2015 07:35:14 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:34854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlFPQ-0002Bl-Lk for qemu-devel@nongnu.org; Thu, 23 Apr 2015 07:35:08 -0400 Received: by pabtp1 with SMTP id tp1so15882779pab.2 for ; Thu, 23 Apr 2015 04:35:07 -0700 (PDT) Date: Thu, 23 Apr 2015 21:34:59 +1000 From: "Edgar E. Iglesias" Message-ID: <20150423113459.GU30629@toto> References: <1429722561-12651-1-git-send-email-greg.bellows@linaro.org> <1429722561-12651-10-git-send-email-greg.bellows@linaro.org> <20150423024929.GC17116@toto> <20150423112449.GT30629@toto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 9/9] target-arm: Add WFx instruction trap support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Sergey Fedorov , Alex =?iso-8859-1?Q?Benn=E9e?= , QEMU Developers , Greg Bellows On Thu, Apr 23, 2015 at 12:28:43PM +0100, Peter Maydell wrote: > On 23 April 2015 at 12:24, Edgar E. Iglesias wrote: > > Maybe we can consider YIELD instead of NOP when has_work() is true as a WFI > > is probably a good hint from guests to reschedule QEMU CPUs. > > That I'm not convinced about. If we have a pending interrupt then > our best bet is probably to take it immediately on this CPU, not > yield to another CPU and take the interrupt when we eventually > get control back. Yeah, true. It's actually a very bad YIELD point when has_work() is true for a WFI. For WFE too I guess, when interrupts are unmasked. Good point. Cheers, Edgar