Received: from eggs.gnu.org ([2001:4830:134:3::10]:56556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiOg0-0001v7-2h for qemu-devel@nongnu.org; Thu, 08 May 2014 09:48:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiOft-0002Bg-VB for qemu-devel@nongnu.org; Thu, 08 May 2014 09:47:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiOft-0002BX-Nh for qemu-devel@nongnu.org; Thu, 08 May 2014 09:47:49 -0400 Date: Thu, 8 May 2014 19:17:38 +0530 From: Amit Shah Message-ID: <20140508134738.GB25602@grmbl.mre> References: <53693FA4.3000306@windriver.com> <5369D504.2070101@redhat.com> <536AB2EE.6010504@windriver.com> <20140508130231.GA24978@grmbl.mre> <536B8332.9070705@redhat.com> <20140508133052.GA25602@grmbl.mre> <536B884D.6080504@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <536B884D.6080504@redhat.com> Subject: Re: [Qemu-devel] virtio-serial-pci very expensive during live migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Chris Friesen , qemu-devel@nongnu.org, armbru@redhat.com On (Thu) 08 May 2014 [15:36:13], Paolo Bonzini wrote: > Il 08/05/2014 15:30, Amit Shah ha scritto: > >On (Thu) 08 May 2014 [15:14:26], Paolo Bonzini wrote: > >>Il 08/05/2014 15:02, Amit Shah ha scritto: > >>>>>I tried the patch below. Unfortunately it seems to cause qemu to crash. > >>>This doesn't remove the memory_region_transaction_begin() and > >>>_commit() from memory_region_add_eventfd(), which will still be > >>>called. > >> > >>That's correct, transactions can be nested. > > > >But each _commit() will add to the delay? > > No, only the outermost one. Helps to read the code :-) Chris, I just tried a simple test this way: ./x86_64-softmmu/qemu-system-x86_64 -device virtio-serial-pci -device virtserialport -S -monitor stdio -nographic and it didn't crash for me. This was with qemu.git. Perhaps you can try in a similar way. Amit