From: David Scott <dave.scott@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: ian.jackson@eu.citrix.com, David Scott <dave.scott@citrix.com>,
wei.liu2@citrix.com, ian.campbell@citrix.com,
stefano.stabellini@eu.citrix.com
Subject: [PATCH v3 1/3] docs: add a document describing the 'channels' mechanism
Date: Mon, 23 Jun 2014 09:28:59 +0100 [thread overview]
Message-ID: <1403512141-12283-2-git-send-email-dave.scott@citrix.com> (raw)
In-Reply-To: <1403512141-12283-1-git-send-email-dave.scott@citrix.com>
A channel is a low-bandwidth private byte stream similar to a serial
link. Typical uses of channels are
1. to provide initial configuration information to a VM on boot
(example use: CloudStack's cloud-early-config service)
2. to signal/query an in-guest agent
(example use: oVirt's guest agent)
Channels are similar to virtio-serial devices, and are intended to be
used in the implementation of libvirt <channel>s when running on Xen.
Note: if an application requires a high-bandwidth link then it should use
vchan instead.
Signed-off-by: David Scott <dave.scott@citrix.com>
---
docs/misc/channel.txt | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 docs/misc/channel.txt
diff --git a/docs/misc/channel.txt b/docs/misc/channel.txt
new file mode 100644
index 0000000..26c2289
--- /dev/null
+++ b/docs/misc/channel.txt
@@ -0,0 +1,52 @@
+Xen PV Channels
+------------------------------------------------------------------------
+ David Scott
+ dave.scott@citrix.com
+
+
+A channel is a low-bandwidth private byte stream similar to a serial
+link. Typical uses of channels are
+
+ 1. to provide initial configuration information to a VM on boot
+ (example use: CloudStack's cloud-early-config service)
+ 2. to signal/query an in-guest agent
+ (example use: oVirt's guest agent)
+
+Channels are similar to virtio-serial devices, and are intended to be
+used in the implementation of libvirt <channel>s when running on Xen.
+
+Note: if an application requires a high-bandwidth link then it should use
+vchan instead.
+
+From the frontend's point of view, a channel is a PV console with a
+name, a where the name can be used to locate the correct device. The
+name is stored in the frontend xenstore directory:
+
+ /local/domain/$DOMID/device/console/$DEVID/name
+
+The frontend can check for this key when the console is hotplugged,
+and handle the device appropriately. For example the frontend could
+spawn a guest agent when a channel with a well-known name is created,
+and still spawn regular getty processes when a normal console is created.
+
+The backend has an associated 'kind' which describes what the backend
+should do with the data. Thee are two defined values: 'pty' and 'socket'.
+
+If 'kind=pty' then the backend will connect to a PTY like a regular
+console. The pty device will be written into the 'tty' key in the
+frontend.
+
+If 'kind=socket' then the backend will create a listening Unix domain
+socket in the path given by 'path=<path>'. Connections will be
+accepted and the data proxied in both directions.
+
+In the default implementation the backend is implemented via qemu
+in "xenpv" mode (i.e. the 'console' device in xenstore will have
+'type=ioemu'). Futhermore if 'kind=socket' then the console 'output'
+in xenstore will be set to:
+
+ output = chardev:libxl-channel$DEVID
+
+The qemu commandline contains one "-chardev id=libxl-channel$DEVID,..."
+option per channel.
+
--
1.7.10.4
next prev parent reply other threads:[~2014-06-23 8:29 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-23 8:28 [PATCH v3] add support for libvirt-like channels David Scott
2014-06-23 8:28 ` David Scott [this message]
2014-06-23 14:38 ` [PATCH v3 1/3] docs: add a document describing the 'channels' mechanism Ian Jackson
2014-06-23 14:53 ` Ian Jackson
2014-06-23 17:45 ` Dave Scott
2014-06-24 10:43 ` Ian Jackson
2014-06-24 11:15 ` Dave Scott
2014-07-02 15:29 ` Ian Campbell
2014-06-23 8:29 ` [PATCH v3 2/3] libxl: add support for channels David Scott
2014-06-23 14:52 ` Ian Jackson
2014-06-23 17:43 ` Dave Scott
2014-06-24 10:41 ` Ian Jackson
2014-06-24 11:09 ` Dave Scott
2014-06-23 8:29 ` [PATCH v3 3/3] xl: " David Scott
2014-06-23 10:02 ` Wei Liu
2014-06-23 10:47 ` Dave Scott
2014-06-23 14:57 ` Ian Jackson
2014-07-02 15:33 ` Ian Campbell
2014-07-03 8:51 ` Dave Scott
2014-07-22 15:05 ` [PATCH v4] add support for libvirt-like channels David Scott
2014-07-22 15:05 ` [PATCH v4 1/3] libxl IDL: the name of a KeyedUnion descriminator need not be 'type' David Scott
2014-07-24 15:52 ` Ian Campbell
2014-07-22 15:05 ` [PATCH v4 2/3] libxl: add support for 'channels' David Scott
2014-09-10 14:41 ` Ian Campbell
2014-09-11 13:12 ` Dave Scott
2014-07-22 15:05 ` [PATCH v4 3/3] xl: " David Scott
2014-07-28 14:22 ` [PATCH v4] add support for libvirt-like channels David Vrabel
2014-08-07 13:37 ` Dave Scott
2014-08-07 14:12 ` David Vrabel
2014-08-07 14:26 ` Stefano Stabellini
2014-08-11 9:35 ` Dave Scott
2014-08-11 11:49 ` Stefano Stabellini
2014-09-10 13:07 ` Ian Campbell
2014-09-10 13:45 ` Dave Scott
2014-09-10 14:04 ` David Vrabel
2014-09-10 14:13 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403512141-12283-2-git-send-email-dave.scott@citrix.com \
--to=dave.scott@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).