Received: from [140.186.70.92] (port=39535 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofqvx-0000Ob-VE for qemu-devel@nongnu.org; Mon, 02 Aug 2010 05:03:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ofqvw-0004kV-O8 for qemu-devel@nongnu.org; Mon, 02 Aug 2010 05:03:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9830) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofqvw-0004k3-HV for qemu-devel@nongnu.org; Mon, 02 Aug 2010 05:03:44 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7293g45004521 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 2 Aug 2010 05:03:42 -0400 Date: Mon, 2 Aug 2010 14:33:39 +0530 From: Amit Shah Subject: Re: [Qemu-devel] RFC adding ioctl's to virtserial/virtconsole Message-ID: <20100802090339.GA4301@amit-laptop.redhat.com> References: <2092558519.524651280737489312.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> <1504146626.525061280738029828.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1504146626.525061280738029828.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: Anthony Liguori , qemu-devel On (Mon) Aug 02 2010 [04:33:49], Alon Levy wrote: > Hi, > > This patch adds three CHR_IOCTLs and uses them in virtserial devices, to be used > by a chardev backend, such as a spice vm channel (spice is a vdi solution). > > Basically virtio-serial provides three driver initiated events for guest open of > a device, guest close, and guest ready (driver port init complete) that before this > patch are not exposed to the chardev backend. > > With the spicevmc backend this is used like this: > qemu -chardev spicevmc,id=vdiport,name=vdiport -device virtserialport,chardev=vdiport,name=com.redhat.spice.0 > > I'd appreciate any feedback if this seems the right way to accomplish this, and > for the numbers I grabbed. Looks fine to me, maybe you don't need the notifications for virtio-console ports, only the virtio-serial ports could be of interest, but I'm fine with both notifying as well. Also, this description could be made part of the patch description itself. Amit