Received: from eggs.gnu.org ([2001:4830:134:3::10]:58445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRj9Y-0004yH-OY for qemu-devel@nongnu.org; Thu, 03 Oct 2013 09:41:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRj9T-0007UZ-U6 for qemu-devel@nongnu.org; Thu, 03 Oct 2013 09:41:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRj9T-0007UU-Lp for qemu-devel@nongnu.org; Thu, 03 Oct 2013 09:41:11 -0400 From: Paolo Bonzini Date: Thu, 3 Oct 2013 15:41:02 +0200 Message-Id: <1380807663-13037-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1380807663-13037-1-git-send-email-pbonzini@redhat.com> References: <1380807663-13037-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] cirrus: Mark vga io region as coalesced MMIO flushing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com From: Jan Kiszka This allows to remove the explicit qemu_flush_coalesced_mmio_buffer calls - the memory core will invoke them now. Signed-off-by: Jan Kiszka Signed-off-by: Paolo Bonzini --- hw/display/cirrus_vga.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index dbd1f4a..e4c345f 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -2447,7 +2447,6 @@ static uint64_t cirrus_vga_ioport_read(void *opaque, hwaddr addr, VGACommonState *s = &c->vga; int val, index; - qemu_flush_coalesced_mmio_buffer(); addr += 0x3b0; if (vga_ioport_invalid(s, addr)) { @@ -2544,7 +2543,6 @@ static void cirrus_vga_ioport_write(void *opaque, hwaddr addr, uint64_t val, VGACommonState *s = &c->vga; int index; - qemu_flush_coalesced_mmio_buffer(); addr += 0x3b0; /* check port range access depending on color/monochrome mode */ @@ -2843,6 +2841,7 @@ static void cirrus_init_common(CirrusVGAState *s, Object *owner, /* Register ioport 0x3b0 - 0x3df */ memory_region_init_io(&s->cirrus_vga_io, owner, &cirrus_vga_io_ops, s, "cirrus-io", 0x30); + memory_region_set_flush_coalesced(&s->cirrus_vga_io); memory_region_add_subregion(system_io, 0x3b0, &s->cirrus_vga_io); memory_region_init(&s->low_mem_container, owner, -- 1.8.3.1