Received: from eggs.gnu.org ([2001:4830:134:3::10]:47926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgxG4-0007pP-8T for qemu-devel@nongnu.org; Mon, 05 Sep 2016 13:00:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgxG0-0001O8-3E for qemu-devel@nongnu.org; Mon, 05 Sep 2016 13:00:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgxFz-0001Nu-Lj for qemu-devel@nongnu.org; Mon, 05 Sep 2016 13:00:27 -0400 References: <1472725227-10374-1-git-send-email-pbonzini@redhat.com> <87k2eqz6nk.fsf@linaro.org> From: Paolo Bonzini Message-ID: <1dcfcbd2-1e86-06d4-7788-6a83ffce958f@redhat.com> Date: Mon, 5 Sep 2016 19:00:23 +0200 MIME-Version: 1.0 In-Reply-To: <87k2eqz6nk.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v6 00/12] cpu-exec: Safe work in quiescent state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: qemu-devel@nongnu.org, Sergey Fedorov , Sergey Fedorov , "Emilio G. Cota" On 05/09/2016 17:51, Alex Benn=C3=A9e wrote: > And then ran the test in my pigz testing image: >=20 > ./tests/docker/docker.py update pigz-test:armhf ./arm-linux-user/qe= mu-arm > retry.py -n 20 -c -- docker run -i -t --rm pigz-test:armhf pigz dat= a.tar >=20 > An observed the results of flushing including racing flushes which woul= d > ordinarily take out the system. >=20 > It would be nice to resurrect some of the tests/tcg stuff and see if we > can stress linux-user with creating and destroying threads. I guess the > work here also replaces Emilo's RCU cpu list. Sort of, uses of CPU_FOREACH should be protected by RCU which isn't yet the case. But yes, that was the idea behind using a single mutex. Related to this, in fact you don't need to hold the mutex between start_exclusive and end_exclusive. You can release it at the end of start_exclusive and take it again for end_exclusive. That's a bit nicer to reason about without making the mutex recursive mutexes. Paolo