Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwwGH-0003rB-Ps for qemu-devel@nongnu.org; Wed, 31 Mar 2010 07:39:05 -0400 Received: from [140.186.70.92] (port=47712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwwGE-0003qU-QA for qemu-devel@nongnu.org; Wed, 31 Mar 2010 07:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwwGD-0007jr-3m for qemu-devel@nongnu.org; Wed, 31 Mar 2010 07:39:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43332) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwwGC-0007je-QD for qemu-devel@nongnu.org; Wed, 31 Mar 2010 07:39:01 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2VBcvjN006692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 31 Mar 2010 07:38:57 -0400 From: Juan Quintela In-Reply-To: <1270020848-15526-1-git-send-email-amit.shah@redhat.com> (Amit Shah's message of "Wed, 31 Mar 2010 13:03:51 +0530") References: <1270020848-15526-1-git-send-email-amit.shah@redhat.com> Date: Wed, 31 Mar 2010 13:38:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 00/17] v4: virtio-serial fixes, new abi for port discovery List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: Gerd Hoffmann , qemu list , "Michael S. Tsirkin" Amit Shah wrote: > Hello, > > These patches rework the way ports are announced to the guests. A > control message is used to let the guest know a new port is > added. Initial port discovery and port hot-plug work via this way now. > > This was done to have the host and guest port numbering in sync to > avoid surprises after several hotplug/unplug operations and > migrations. > > The ability to assign a particular port number to ports is also added > so that management software can control the placement of ports. > > Differences from v3: > - Removed the QMP events (will ride on top of new infrastructure by > Luiz) > > - Add flow control: ports can signal to the virtio-serial code to stop > sending data till it's ready to accept more. > > - A fix for not abusing the virtqueue_push() api: we should signal to > the guest the number of bytes written for guest to consume. We were > using the number to signify the bytes consumed by hosts. > > - Juan's comment about re-using control queue buffers > > Overall: > - Users can set the port id they wish to instantiate ports at by using > the ,nr= parameter to 'virtserialport' and 'virtconsole' devices > > - Migration fixes: refuse migration when: > - number of active ports is different between the src and destination > - max_nr_ports a device can support on the src is more > > - If a qemu chardev connection to a port is closed on the dest while > it was open on the src, inform the guest about this. (Also do the > same for port closed on src but open on dest.) > > - Use control messages for relaying new port information instead of > config space (changes abi) > > - Propagate error message from guest in instantiating a port or a > device to the user. > > - Handle scatter/gather for control output and data output from the > guest > > - Fix abuse of virtio api in the virtqueue_push() function > > - Add an API for the ports for flow control: ports can signal when > they're ready to accept data / stop sending data. Reviewed-by: Juan Quintela Later, Juan.