From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZklr-0005uI-LE for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:43:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZkln-0005sF-TE for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:43:51 -0500 Received: from [199.232.76.173] (port=39117 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZklm-0005rr-SU for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:43:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7020) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZklm-0003Xe-6o for qemu-devel@nongnu.org; Tue, 26 Jan 2010 07:43:46 -0500 Date: Tue, 26 Jan 2010 10:43:04 -0200 From: Marcelo Tosatti 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 Content-Disposition: inline In-Reply-To: <1264504876-24493-1-git-send-email-sheng@linux.intel.com> Subject: [Qemu-devel] Re: [PATCH v3][uqmaster] kvm: Flush coalesced MMIO buffer periodly List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sheng Yang Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, Avi Kivity , Alexander Graf 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.