From patchwork Thu Aug 23 11:02:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 1366461 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 6236440D1A for ; Thu, 23 Aug 2012 11:02:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933847Ab2HWLCw (ORCPT ); Thu, 23 Aug 2012 07:02:52 -0400 Received: from goliath.siemens.de ([192.35.17.28]:16759 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933505Ab2HWLCu (ORCPT ); Thu, 23 Aug 2012 07:02:50 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.13.6/8.13.6) with ESMTP id q7NB2acq004905; Thu, 23 Aug 2012 13:02:37 +0200 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id q7NB2ZRa000368; Thu, 23 Aug 2012 13:02:36 +0200 From: Jan Kiszka To: Avi Kivity , Marcelo Tosatti Cc: kvm , Anthony Liguori , qemu-devel , Liu Ping Fan Subject: [PATCH v3 uq/master 4/6] memory: Flush coalesced MMIO on mapping and state changes Date: Thu, 23 Aug 2012 13:02:32 +0200 Message-Id: <16a6bb28ec179910f7a865c391a2b211d4069f70.1345719752.git.jan.kiszka@siemens.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Flush pending coalesced MMIO before performing mapping or state changes that could affect the event orderings or route the buffered requests to a wrong region. Signed-off-by: Jan Kiszka --- memory.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index e29c193..c5bcf45 100644 --- a/memory.c +++ b/memory.c @@ -733,6 +733,7 @@ static void address_space_update_topology(AddressSpace *as) void memory_region_transaction_begin(void) { + qemu_flush_coalesced_mmio_buffer(); ++memory_region_transaction_depth; }