From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBlIk-0005pP-TQ for qemu-devel@nongnu.org; Mon, 28 Jul 2014 09:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBlIb-000870-8d for qemu-devel@nongnu.org; Mon, 28 Jul 2014 09:49:18 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34132 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBlIb-00086r-1L for qemu-devel@nongnu.org; Mon, 28 Jul 2014 09:49:09 -0400 Message-ID: <53D654D2.40308@suse.de> Date: Mon, 28 Jul 2014 15:49:06 +0200 From: Alexander Graf MIME-Version: 1.0 References: <1404997839-29038-1-git-send-email-borntraeger@de.ibm.com> <1404997839-29038-5-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1404997839-29038-5-git-send-email-borntraeger@de.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH/RFC 4/5] s390x/kvm: test whether a cpu is STOPPED when checking "has_work" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger , KVM , qemu-devel Cc: Cornelia Huck , Paolo Bonzini , Jens Freimann , David Hildenbrand , linux-s390 On 10.07.14 15:10, Christian Borntraeger wrote: > From: David Hildenbrand > > If a cpu is stopped, it must never be allowed to run and no interrupt may wake it > up. A cpu also has to be unhalted if it is halted and has work to do - this > scenario wasn't hit in kvm case yet, as only "disabled wait" is processed within > QEMU. > > Signed-off-by: David Hildenbrand > Reviewed-by: Cornelia Huck > Reviewed-by: Christian Borntraeger > Signed-off-by: Christian Borntraeger This looks like it's something that generic infrastructure should take care of, no? How does this work for the other archs? They always get an interrupt on the transition between !has_work -> has_work. Why don't we get one for s390x? Alex