From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPWkD-0008BH-U9 for qemu-devel@nongnu.org; Wed, 12 Aug 2015 10:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPWkA-0004q4-KM for qemu-devel@nongnu.org; Wed, 12 Aug 2015 10:11:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPWk9-0004pZ-Qy for qemu-devel@nongnu.org; Wed, 12 Aug 2015 10:11:02 -0400 References: <1438966995-5913-1-git-send-email-a.rigo@virtualopensystems.com> <1438966995-5913-2-git-send-email-a.rigo@virtualopensystems.com> <55C9FE29.2080204@redhat.com> <55CA1AF8.1090409@redhat.com> <55CA2383.60805@redhat.com> <55CB3DEA.2050103@redhat.com> From: Paolo Bonzini Message-ID: <55CB53EE.6030007@redhat.com> Date: Wed, 12 Aug 2015 16:10:54 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v4 1/9] exec.c: Add new exclusive bitmap to ram_list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alvise rigo Cc: mttcg@greensocs.com, Claudio Fontana , QEMU Developers , Jani Kokkonen , VirtualOpenSystems Technical Team , =?UTF-8?Q?Alex_Benn=c3=a9e?= On 12/08/2015 16:04, alvise rigo wrote: >> > clear algorithm: >> > if bytemap[vaddr] == 254 >> > bytemap[vaddr] = CPU_ID > Isn't this also required for the clear algorithm? > > if bytemap[vaddr] < 254 > /* this can happen for the TLB_EXCL slow path effect */ > bytemap[vaddr] = 255 I don't think so because clear doesn't clear TLB_EXCL. But maybe we're talking about two different things. :) Paolo