From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPX92-0006MN-9Q for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:55:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPX91-0002B1-4Y for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:55:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPX90-0002Ax-Se for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:55:23 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r39BtMdS021880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Apr 2013 07:55:22 -0400 Message-ID: <516401A5.1020707@redhat.com> Date: Tue, 09 Apr 2013 13:55:17 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1365420597-5506-1-git-send-email-pbonzini@redhat.com> <1365420597-5506-4-git-send-email-pbonzini@redhat.com> <878v4sdj6q.fsf@elfo.elfo> In-Reply-To: <878v4sdj6q.fsf@elfo.elfo> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/4] migration: drop is_write complications List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: kwolf@redhat.com, owasserm@redhat.com, qemu-devel@nongnu.org Il 09/04/2013 13:42, Juan Quintela ha scritto: >> > @@ -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? This test assumes that it makes sense to call qemu_get_byte on a write-opened QEMUFile. This is not true anymore after this patch. After eliminating is_write, the right thing to do is abort. Paolo > 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.