From: Marcelo Tosatti Subject: Re: [PATCH v3][uqmaster] kvm: Flush coalesced MMIO buffer periodly Date: Tue, 26 Jan 2010 10:43:04 -0200 Message-ID: <20100126124304.GB25128@amt.cnet> References: <366919FC-E282-4A23-8D9C-595D8583C97F@suse.de> <1264504876-24493-1-git-send-email-sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Anthony Liguori , Alexander Graf , kvm@vger.kernel.org, qemu-devel@nongnu.org To: Sheng Yang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:32197 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056Ab0AZMns (ORCPT ); Tue, 26 Jan 2010 07:43:48 -0500 Content-Disposition: inline In-Reply-To: <1264504876-24493-1-git-send-email-sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jan 26, 2010 at 07:21:16PM +0800, Sheng Yang wrote: > The default action of coalesced MMIO is, cache the writing in buffer, until: > 1. The buffer is full. > 2. Or the exit to QEmu due to other reasons. > > But this would result in a very late writing in some condition. > 1. The each time write to MMIO content is small. > 2. The writing interval is big. > 3. No need for input or accessing other devices frequently. > > This issue was observed in a experimental embbed system. The test image > simply print "test" every 1 seconds. The output in QEmu meets expectation, > but the output in KVM is delayed for seconds. > > Per Avi's suggestion, I hooked flushing coalesced MMIO buffer in VGA update > handler. By this way, We don't need vcpu explicit exit to QEmu to > handle this issue. > > Signed-off-by: Sheng Yang Applied, thanks.