From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBlmL-0002sX-KF for qemu-devel@nongnu.org; Mon, 28 Jul 2014 10:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBlmE-00028L-C8 for qemu-devel@nongnu.org; Mon, 28 Jul 2014 10:19:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBlmE-000283-4C for qemu-devel@nongnu.org; Mon, 28 Jul 2014 10:19:46 -0400 Message-ID: <53D65BF7.5060104@redhat.com> Date: Mon, 28 Jul 2014 16:19:35 +0200 From: Paolo Bonzini 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> <53D654D2.40308@suse.de> <20140728161644.00c09b3f@thinkpad-w530> In-Reply-To: <20140728161644.00c09b3f@thinkpad-w530> Content-Type: text/plain; charset=ISO-8859-1 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: David Hildenbrand , Alexander Graf Cc: linux-s390 , KVM , qemu-devel , Christian Borntraeger , Jens Freimann , Cornelia Huck Il 28/07/2014 16:16, David Hildenbrand ha scritto: > Later, another vcpu might decide to turn that vcpu back on (by e.g. sending a > SIGP START to that vcpu). > > I am not sure if such a mechanism/scenario is applicable to any other arch. They > all seem to reset the cs->halted flag if they know they are able to run (e.g. > due to an interrupt) - they have no such thing as "stopped cpus", only > "halted/waiting cpus". On x86, INIT_RECEIVED is pretty much a stopped CPU. It can only run (and receive interrupts) after getting a special startup interrupt ("SIPI"). Paolo