From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuYfm-0001hq-MZ for qemu-devel@nongnu.org; Thu, 16 Apr 2009 16:59:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuYfi-0001f4-2s for qemu-devel@nongnu.org; Thu, 16 Apr 2009 16:59:02 -0400 Received: from [199.232.76.173] (port=43795 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuYfh-0001ex-TI for qemu-devel@nongnu.org; Thu, 16 Apr 2009 16:58:57 -0400 Received: from mx2.redhat.com ([66.187.237.31]:43743) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LuYfg-0003Fn-L2 for qemu-devel@nongnu.org; Thu, 16 Apr 2009 16:58:57 -0400 Date: Thu, 16 Apr 2009 17:58:36 -0300 From: Marcelo Tosatti Message-ID: <20090416205836.GA16259@amt.cnet> References: <20090407195126.467365249@localhost.localdomain> <20090407195442.646407971@localhost.localdomain> <49E79AB0.2090903@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49E79AB0.2090903@us.ibm.com> Subject: [Qemu-devel] Re: [patch 01/11] qemu: create helper for event notification Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "qemu-devel@nongnu.org" On Thu, Apr 16, 2009 at 03:53:04PM -0500, Anthony Liguori wrote: >> } >> } >> > > I always thought next_cpu was used here to cover an explicit race condition. > > If you're using TCG, and you get a single after running the loop, but > before assigning cpu_single_env, then you'll set the interrupt exit > request on the old CPU state. You'll eventually exit I guess but you > potentially have to run through multiple VCPUs. > > I'd feel more comfortable if we preserved the behavior here that we had > before. Right. Patch 7 reverts to the old behaviour.