From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7K9C-0005JK-MJ for qemu-devel@nongnu.org; Tue, 23 Jun 2015 05:05:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7K99-00009g-C3 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 05:05:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7K99-00009X-48 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 05:05:35 -0400 Date: Tue, 23 Jun 2015 17:05:31 +0800 From: Fam Zheng Message-ID: <20150623090531.GC2028@ad.nay.redhat.com> References: <1434646046-27150-1-git-send-email-pbonzini@redhat.com> <1434646046-27150-5-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434646046-27150-5-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH 4/9] exec: pull qemu_flush_coalesced_mmio_buffer() into address_space_rw/ld*/st* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: jan.kiszka@siemens.com, qemu-devel@nongnu.org On Thu, 06/18 18:47, Paolo Bonzini wrote: [snip] > diff --git a/memory.c b/memory.c > index 6b77354..be385d4 100644 > --- a/memory.c > +++ b/memory.c > @@ -414,9 +414,6 @@ static MemTxResult memory_region_read_with_attrs_accessor(MemoryRegion *mr, > uint64_t tmp = 0; > MemTxResult r; > > - if (mr->flush_coalesced_mmio) { > - qemu_flush_coalesced_mmio_buffer(); > - } > r = mr->ops->read_with_attrs(mr->opaque, addr, &tmp, size, attrs); > trace_memory_region_ops_read(mr, addr, tmp, size); > *value |= (tmp & mask) << shift; > @@ -449,9 +446,6 @@ static MemTxResult memory_region_write_accessor(MemoryRegion *mr, > { > uint64_t tmp; > > - if (mr->flush_coalesced_mmio) { > - qemu_flush_coalesced_mmio_buffer(); > - } > tmp = (*value >> shift) & mask; > trace_memory_region_ops_write(mr, addr, tmp, size); > mr->ops->write(mr->opaque, addr, tmp, size); Why are memory_region_read_accessor and memory_region_write_with_attrs_accessor unchanged? Fam