From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47753 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOsGB-0004uS-7I for qemu-devel@nongnu.org; Wed, 16 Jun 2010 09:02:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOsG8-0007T2-Er for qemu-devel@nongnu.org; Wed, 16 Jun 2010 09:02:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5454) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOsG8-0007Sd-7e for qemu-devel@nongnu.org; Wed, 16 Jun 2010 09:02:24 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5GD2MX6015113 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 16 Jun 2010 09:02:22 -0400 From: Juan Quintela In-Reply-To: <4C189162.4040701@redhat.com> (Paolo Bonzini's message of "Wed, 16 Jun 2010 10:54:58 +0200") References: <31e7e4aefc644057186f501bfef4584d337a4d9c.1276607973.git.quintela@redhat.com> <4C189162.4040701@redhat.com> Date: Wed, 16 Jun 2010 15:02:20 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 5/5] ide: fix migration in the middle of a bmdma transfer List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini wrote: > On 06/15/2010 03:31 PM, Juan Quintela wrote: >> Signed-off-by: Juan Quintela > > Sorry if this has been discussed to death before (if so I must have > missed it...). > > With subsections available, what about taking advantage of the new > protocol extension and add to the subsection info about the size of > the subsection? Not trivial with current infrastructure :( > Also, with the size information, would it make sense to specify > optional subsections that the receiver could choose to ignore? We agreed that this was going to be forbidden. If sender send data -> it needs to be received. Sender can decide to not send a subsection if its data is not needed. > Mandatory subsections are something such that round-trip A->B->A fail > unless B understands the subsection, while optional subsections are > such that A can provide a default. IDE subsections would be optional, > for example. This is the whole point of the .needed() function. if neeeded(foo_subsection) returns false -> subsection is not needed. If it returns true -> it is needed, destination has to understand it. Later, Juan.