From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39436 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgAkK-00040w-IR for qemu-devel@nongnu.org; Tue, 03 Aug 2010 02:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgAkJ-0000D9-If for qemu-devel@nongnu.org; Tue, 03 Aug 2010 02:13:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1705) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgAkJ-0000Cu-BJ for qemu-devel@nongnu.org; Tue, 03 Aug 2010 02:13:03 -0400 Message-ID: <4C57B364.8090500@redhat.com> Date: Tue, 03 Aug 2010 09:12:52 +0300 From: Avi Kivity MIME-Version: 1.0 References: <1278521062-13795-1-git-send-email-avi@redhat.com> In-Reply-To: <1278521062-13795-1-git-send-email-avi@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] QEMUFileBuffered: indicate that we're ready when the underlying file is ready List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org On 07/07/2010 07:44 PM, Avi Kivity wrote: > QEMUFileBuffered stops writing when the underlying QEMUFile is not ready, > and tells its producer so. However, when the underlying QEMUFile becomes > ready, it neglects to pass that information along, resulting in stoppage > of all data until the next tick (a tenths of a second). > > Usually this doesn't matter, because most QEMUFiles used with QEMUFileBuffered > are almost always ready, but in the case of exec: migration this is not true, > due to the small pipe buffers used to connect to the target process. The > result is very slow migration. > > Fix by detecting the readiness notification and propagating it. The detection > is a little ugly since QEMUFile overloads put_buffer() to send it, but that's > the suject for a different patch. Ping. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.