From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOR7v-0007sD-2b for qemu-devel@nongnu.org; Mon, 11 Dec 2017 11:40:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOR7s-0008Ib-G1 for qemu-devel@nongnu.org; Mon, 11 Dec 2017 11:40:23 -0500 References: <20171129191215.11323-1-david@redhat.com> <3f0c7605-4090-c1f6-c40d-06aab9a3e992@redhat.com> From: David Hildenbrand Message-ID: <626bacaa-c24a-1cc0-14a7-d9ea4592b2f5@redhat.com> Date: Mon, 11 Dec 2017 17:40:09 +0100 MIME-Version: 1.0 In-Reply-To: <3f0c7605-4090-c1f6-c40d-06aab9a3e992@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1] cpus: make pause_all_cpus() play with SMP on single threaded TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-s390x@nongnu.org, qemu-devel@nongnu.org Cc: Peter Crosthwaite , Christian Borntraeger , Cornelia Huck , Richard Henderson , Alexander Graf > int vm_stop(RunState state) > { > if (qemu_in_vcpu_thread()) { > @@ -1818,7 +1809,8 @@ int vm_stop(RunState state) > * FIXME: should not return to device code in case > * vm_stop() has been requested. > */ > - cpu_stop_current(); > + qemu_cpu_stop(current_cpu); > + cpu_exit(current_cpu); We're doing the cpu_exit() now after the broadcast, is this ok? Also we drop the check for current_cpu, I assume this is also ok. > return 0; > } > -- Thanks, David / dhildenb