From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPC90-0002FJ-Fy for qemu-devel@nongnu.org; Tue, 11 Aug 2015 12:11:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPC8v-0004AM-Ht for qemu-devel@nongnu.org; Tue, 11 Aug 2015 12:11:18 -0400 Received: from mail-ig0-f174.google.com ([209.85.213.174]:37177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPC8v-0004A3-Dz for qemu-devel@nongnu.org; Tue, 11 Aug 2015 12:11:13 -0400 Received: by igbpg9 with SMTP id pg9so94741990igb.0 for ; Tue, 11 Aug 2015 09:11:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55CA1AF8.1090409@redhat.com> 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> Date: Tue, 11 Aug 2015 18:11:12 +0200 Message-ID: From: alvise rigo Content-Type: text/plain; charset=UTF-8 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: Paolo Bonzini Cc: mttcg@greensocs.com, Claudio Fontana , QEMU Developers , Jani Kokkonen , VirtualOpenSystems Technical Team , =?UTF-8?B?QWxleCBCZW5uw6ll?= On Tue, Aug 11, 2015 at 5:55 PM, Paolo Bonzini wrote: > > > On 11/08/2015 17:54, alvise rigo wrote: >> This can lead to an excessive rate of flush requests, since for one >> CPU that removes the TLB_EXCL flag, all the others that are competing >> for the same excl address will need to flush the entire cache and >> start all over again. > > Why flush the entire cache (I understand you mean TLB)? Sorry, I meant the TLB. If for each removal of an exclusive entry we set also the bit to 1, we force the following LL to make a tlb_flush() on every vCPU. alvise > > Paolo > >> If for a start we want to have a simpler implementation, I can revert >> back to the one-bit design.