From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCYzf-0003nO-0I for qemu-devel@nongnu.org; Wed, 30 Jul 2014 14:53:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCYzY-0007Rv-6t for qemu-devel@nongnu.org; Wed, 30 Jul 2014 14:52:54 -0400 Received: from mail.windriver.com ([147.11.1.11]:52575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCYzX-0007RV-Uf for qemu-devel@nongnu.org; Wed, 30 Jul 2014 14:52:48 -0400 Message-ID: <53D93EF9.3020505@windriver.com> Date: Wed, 30 Jul 2014 12:52:41 -0600 From: Chris Friesen MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] questions about host side of virtio-serial List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" , Amit Shah Hi, I'm working on a native user of virtio-serial (ie, not going via the qemu guest agent). The information at "http://www.linux-kvm.org/page/Virtio-serial_API" does a good job of describing the guest side of things, but has very little information about the host side of things. In particular, assuming that the host side is using a chardev mapped to a unix socket: 1) Is there any way for the host app to get information about whether or not the guest is reading the messages? (i.e. logically equivalent to getting POLLHUP in the guest when the host app disconnects.) 2) Suppose the host sends a large message. The guest app reads a portion of the message, then crashes. We respawn the guest app and start reading again, but now we're in the middle of a message of arbitrary size. Is there a recommended technique to re-sync the host and guest? 3) Same as 2, but the guest sending to the host and the host app crashing partway through. 4) If nothing in the guest is reading the data, how much data can the host send before it will get an error? Is there a way to adjust this? Thanks, Chris