From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDOlo-0003Cv-Nf for qemu-devel@nongnu.org; Fri, 19 Oct 2018 03:00:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDOlZ-0006jo-Rr for qemu-devel@nongnu.org; Fri, 19 Oct 2018 03:00:19 -0400 References: <20181019010625.25294-1-cota@braap.org> From: Paolo Bonzini Message-ID: Date: Fri, 19 Oct 2018 08:59:24 +0200 MIME-Version: 1.0 In-Reply-To: <20181019010625.25294-1-cota@braap.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v3 0/56] per-CPU locks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , qemu-devel@nongnu.org Cc: Aleksandar Markovic , Alexander Graf , Alistair Francis , Andrzej Zaborowski , Anthony Green , Artyom Tarasenko , Aurelien Jarno , Bastian Koppelmann , Christian Borntraeger , Chris Wulff , Cornelia Huck , David Gibson , David Hildenbrand , "Edgar E. Iglesias" , Eduardo Habkost , Fabien Chouteau , Guan Xuetao , James Hogan , Laurent Vivier , Marek Vasut , Mark Cave-Ayland , Max Filippov , Michael Clark , Michael Walle , Palmer Dabbelt , Pavel Dovgalyuk , Peter Crosthwaite , Peter Maydell , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Richard Henderson , Sagar Karandikar , Stafford Horne On 19/10/2018 03:05, Emilio G. Cota wrote: > I'm calling this series a v3 because it supersedes the two series > I previously sent about using atomics for interrupt_request: > https://lists.gnu.org/archive/html/qemu-devel/2018-09/msg02013.html > The approach in that series cannot work reliably; using (locked) atomics > to set interrupt_request but not using (locked) atomics to read it > can lead to missed updates. The idea here was that changes to protected fields are all followed by kick. That may not have been the case, granted, but I wonder if the plan is unworkable. Paolo