From: Paul Durrant <paul.durrant@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Keir Fraser <keir@xen.org>,
Ian Campbell <ian.campbell@citrix.com>, Tim Deegan <tim@xen.org>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Paul Durrant <paul.durrant@citrix.com>,
Jan Beulich <jbeulich@suse.com>
Subject: [PATCH 4/4] docs: Document xenstore paths for domain network address information
Date: Fri, 6 Nov 2015 17:21:47 +0000 [thread overview]
Message-ID: <1446830507-4233-6-git-send-email-paul.durrant@citrix.com> (raw)
In-Reply-To: <1446830507-4233-1-git-send-email-paul.durrant@citrix.com>
It is useful to be able to see the network addresses in use by a domain
for a particular vif in xenstore, for example so that ssh can be invoked
by a toolstack to log into the guest domain.
This patch documents paths to allow a domain to advertise MAC (unicast
and multicast) and IP (versions 4 and 6) address information.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>
Cc: Tim Deegan <tim@xen.org>
---
docs/misc/xenstore-paths.markdown | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/docs/misc/xenstore-paths.markdown b/docs/misc/xenstore-paths.markdown
index 9e98d6f..68d3dbf 100644
--- a/docs/misc/xenstore-paths.markdown
+++ b/docs/misc/xenstore-paths.markdown
@@ -39,6 +39,8 @@ before regexp expansion:
* $UUID -- a UUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
* $NAME -- a string identifying an object within a domain. Typically
comprising only alphanumeric characters.
+* $INDEX -- an integer used as part of a path when listing a set of
+ values. Typically these integers are contiguous.
VALUES are strings and can take the following forms:
@@ -56,6 +58,13 @@ VALUES are strings and can take the following forms:
* VERSION -- 2 or 3 integers, in decimal form separated by ".",
specifying major version, minor version, and then
(optionally) micro version.
+* MAC_ADDRESS -- 6 integers, in hexadecimal form, separated by ':',
+ specifying an ethernet MAC address.
+* IPV4_ADDRESS -- 4 integers, in decimal form, separated by '.',
+ specifying an IP version 4 address.
+* IPV6_ADDRESS -- 8 integers, in hexadecimal form, separated by ':',
+ specifying an IP version 6 address. (There should
+ be strictly 8 integers i.e. '::' compression).
Additional TAGS may follow as a comma separated set of the following
tags enclosed in square brackets.
@@ -399,6 +408,26 @@ An HVM domain can indicate to a toolstack that it is capable
of responding to instantiation of a new vbd by bringing online a
new PV block device without the need for a reboot.
+#### ~/attr/vif/$DEVID/name = STRING [w]
+
+A domain may write its internal 'friendly' name for a network device
+using this path.
+
+#### ~/attr/vif/$DEVID/mac/$INDEX = MAC_ADDRESS [w]
+
+A domain may write the set of MAC addresses (unicast and multicast)
+in use by the network frontend using paths of this form.
+
+#### ~/attr/vif/$DEVID/ipv4/$INDEX = IPV4_ADDRESS [w]
+
+A domain may write the set of IP version 4 addresses in use by the
+stack bound to the network frontend using paths of this form.
+
+#### ~/attr/vif/$DEVID/ipv6/$INDEX = IPV6_ADDRESS [w]
+
+A domain may write the set of IP version 6 addresses in use by the
+stack bound to the network frontend using paths of this form.
+
### Paths private to the toolstack
#### ~/device-model/$DOMID/state [w]
--
2.1.4
next prev parent reply other threads:[~2015-11-06 17:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 17:21 [PATCH 0/4] docs: Document xenstore paths Paul Durrant
2015-11-06 17:21 ` [PATCH 1/4] docs: Document control features the can be advertised by guests Paul Durrant
2015-11-09 10:44 ` Jan Beulich
2015-11-09 11:01 ` Paul Durrant
2015-11-06 17:21 ` [PATCH 2/4] docs: Document a path for PV driver version information Paul Durrant
2015-11-06 17:25 ` Paul Durrant
2015-11-06 17:21 ` [PATCH 2/4] docs: Document a xenstore " Paul Durrant
2015-11-06 18:05 ` Andrew Cooper
2015-11-06 17:21 ` [PATCH 3/4] docs: Document xenstore paths for domain hotplug features Paul Durrant
2015-11-06 18:08 ` Andrew Cooper
2015-11-09 9:51 ` Paul Durrant
2015-11-09 10:50 ` Jan Beulich
2015-11-09 11:01 ` Paul Durrant
2015-11-06 17:21 ` Paul Durrant [this message]
2015-11-06 18:16 ` [PATCH 4/4] docs: Document xenstore paths for domain network address information Andrew Cooper
2015-11-09 9:55 ` Paul Durrant
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=1446830507-4233-6-git-send-email-paul.durrant@citrix.com \
--to=paul.durrant@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.