From: Wei Liu Subject: Re: [PATCH RFC 1/4] libxl: add a list of abstract 'channels' to the domain config Date: Thu, 12 Jun 2014 12:44:46 +0100 Message-ID: <20140612114446.GX11959@zion.uk.xensource.com> References: <1402518269-23164-1-git-send-email-dave.scott@citrix.com> <1402518269-23164-2-git-send-email-dave.scott@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wv3R5-0007h5-0S for xen-devel@lists.xenproject.org; Thu, 12 Jun 2014 11:44:51 +0000 Content-Disposition: inline In-Reply-To: <1402518269-23164-2-git-send-email-dave.scott@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Scott Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com, Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, Jun 11, 2014 at 09:24:26PM +0100, David Scott wrote: > A 'channel' is a low-bandwidth private communication channel that > resembles a physical serial port. Example uses include: > > * providing initial VM configuration without having to use the > network > * signalling a guest agent > > Every channel has a string 'name' which the VM can use to find > the appropriate handler. Each channel has an implementation 'type' > which currently includes: > > * NONE: reads will block, writes will be thrown away > * PTY: the I/O surfaces as a pty in the backend domain > * PATH: writes are appended to a log file in the backend domain > * SOCKET: a listening Unix domain socket accepts a connection in > the backend domain and proxies > > Signed-off-by: David Scott > --- > tools/libxl/libxl_types.idl | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > index 52f1aa9..4df8d42 100644 > --- a/tools/libxl/libxl_types.idl > +++ b/tools/libxl/libxl_types.idl > @@ -51,6 +51,17 @@ libxl_domain_type = Enumeration("domain_type", [ > (2, "PV"), > ], init_val = -1) > > +libxl_channel_type = Enumeration("channel_type", [ > + # Connected to nothing: > + (0, "NONE"), > + # Connect to a pty in the backend domain: > + (1, "PTY"), > + # Spool output to a file in the backend domain: > + (2, "PATH"), > + # Listen on a Unix domain socket in the backend domain: > + (3, "SOCKET"), > + ], init_val = 0) > + You can omit init_val if it is 0. Wei.