From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: qemu vs. kvm: When to flush the coalesced mmio buffer? Date: Mon, 03 Jan 2011 14:32:16 +0200 Message-ID: <4D21C1D0.6060301@redhat.com> References: <4D21BCF4.6020904@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm , qemu-devel To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56916 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754341Ab1ACMcV (ORCPT ); Mon, 3 Jan 2011 07:32:21 -0500 In-Reply-To: <4D21BCF4.6020904@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On 01/03/2011 02:11 PM, Jan Kiszka wrote: > Hi again, > > another subtle difference between qemu-kvm and upstream: > > When we leave the guest for an IO window (KVM_RUN returns EINTR or > EAGAIN), we call kvm_flush_coalesced_mmio_buffer in qemu-kvm but not in > upstream. When version is better? I can't find any rationales in both > git logs. We must flush on EINTR, otherwise a live migration can leave some mmios in the source host and not replay them on the destination host. (plus, as Gleb says, if you're in userspace you might as well flush) -- error compiling committee.c: too many arguments to function