From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPWwP-0005op-Nc for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPWwL-0006Hn-9k for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:42:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPWwL-0006HU-1n for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:42:17 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r39BgFhf024648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Apr 2013 07:42:15 -0400 From: Juan Quintela In-Reply-To: <1365420597-5506-4-git-send-email-pbonzini@redhat.com> (Paolo Bonzini's message of "Mon, 8 Apr 2013 13:29:56 +0200") References: <1365420597-5506-1-git-send-email-pbonzini@redhat.com> <1365420597-5506-4-git-send-email-pbonzini@redhat.com> Date: Tue, 09 Apr 2013 13:42:21 +0200 Message-ID: <878v4sdj6q.fsf@elfo.elfo> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 3/4] migration: drop is_write complications Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, owasserm@redhat.com, qemu-devel@nongnu.org Paolo Bonzini wrote: > The same QEMUFile is never used for both read and write. Simplify > the logic to simply look for presence or absence of the right ops. > > Signed-off-by: Paolo Bonzini Love this one. > @@ -556,11 +557,7 @@ static void qemu_fill_buffer(QEMUFile *f) > int len; > int pending; > > - if (!f->ops->get_buffer) > - return; Why are we removing this test? this has nothing to do with the is_write removal? And yes, having a better way of knowing that the operations are there looks like a good idea, but that is independent of this series. Thanks, Juan.