Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Add man pages for Xen devices:



details:   https://anonhg.NetBSD.org/src/rev/a1bb4086a230
branches:  trunk
changeset: 760686:a1bb4086a230
user:      jym <jym%NetBSD.org@localhost>
date:      Tue Jan 11 00:45:04 2011 +0000

description:
Add man pages for Xen devices:
pciback.4 xbd.4 xbdback.4 xenbus.4 xennet.4 xpci.4 xvif.4

Blessed by bouyer@

diffstat:

 distrib/sets/lists/man/mi |   23 ++++++++-
 share/man/man4/Makefile   |    5 +-
 share/man/man4/pciback.4  |  119 ++++++++++++++++++++++++++++++++++++++++++++++
 share/man/man4/xbd.4      |  102 +++++++++++++++++++++++++++++++++++++++
 share/man/man4/xbdback.4  |  100 ++++++++++++++++++++++++++++++++++++++
 share/man/man4/xenbus.4   |   85 ++++++++++++++++++++++++++++++++
 share/man/man4/xennet.4   |  105 ++++++++++++++++++++++++++++++++++++++++
 share/man/man4/xpci.4     |   81 +++++++++++++++++++++++++++++++
 share/man/man4/xvif.4     |  107 +++++++++++++++++++++++++++++++++++++++++
 9 files changed, 725 insertions(+), 2 deletions(-)

diffs (truncated from 824 to 300 lines):

diff -r e3d95e987b66 -r a1bb4086a230 distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Tue Jan 11 00:36:03 2011 +0000
+++ b/distrib/sets/lists/man/mi Tue Jan 11 00:45:04 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1273 2011/01/09 15:12:33 jruoho Exp $
+# $NetBSD: mi,v 1.1274 2011/01/11 00:45:04 jym Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -1323,6 +1323,7 @@
 ./usr/share/man/cat4/pcdisplay.0               man-sys-catman          .cat
 ./usr/share/man/cat4/pchb.0                    man-sys-catman          .cat
 ./usr/share/man/cat4/pci.0                     man-sys-catman          .cat
+./usr/share/man/cat4/pciback.0                 man-sys-catman          .cat
 ./usr/share/man/cat4/pcic.0                    man-sys-catman          .cat
 ./usr/share/man/cat4/pciide.0                  man-sys-catman          .cat
 ./usr/share/man/cat4/pckbc.0                   man-sys-catman          .cat
@@ -1765,8 +1766,14 @@
 ./usr/share/man/cat4/x86/fwhrng.0              man-sys-catman          .cat
 ./usr/share/man/cat4/x86/hpet.0                        man-sys-catman          .cat
 ./usr/share/man/cat4/x86/ichlpcib.0            man-sys-catman          .cat
+./usr/share/man/cat4/xbd.0                     man-sys-catman          .cat
+./usr/share/man/cat4/xbdback.0                 man-sys-catman          .cat
 ./usr/share/man/cat4/xbox.0                    man-sys-catman          .cat
+./usr/share/man/cat4/xenbus.0                  man-sys-catman          .cat
+./usr/share/man/cat4/xennet.0                  man-sys-catman          .cat
 ./usr/share/man/cat4/xge.0                     man-sys-catman          .cat
+./usr/share/man/cat4/xpci.0                    man-sys-catman          .cat
+./usr/share/man/cat4/xvif.0                    man-sys-catman          .cat
 ./usr/share/man/cat4/xi.0                      man-sys-catman          .cat
 ./usr/share/man/cat4/xirc.0                    man-sys-catman          .cat
 ./usr/share/man/cat4/yds.0                     man-sys-catman          .cat
@@ -4000,6 +4007,7 @@
 ./usr/share/man/html4/pcdisplay.html           man-sys-htmlman         html
 ./usr/share/man/html4/pchb.html                        man-sys-htmlman         html
 ./usr/share/man/html4/pci.html                 man-sys-htmlman         html
+./usr/share/man/html4/pciback.html             man-sys-htmlman         html
 ./usr/share/man/html4/pcic.html                        man-sys-htmlman         html
 ./usr/share/man/html4/pciide.html              man-sys-htmlman         html
 ./usr/share/man/html4/pckbc.html               man-sys-htmlman         html
@@ -4412,8 +4420,14 @@
 ./usr/share/man/html4/x86/fwhrng.html          man-sys-htmlman         html
 ./usr/share/man/html4/x86/hpet.html            man-sys-htmlman         html
 ./usr/share/man/html4/x86/ichlpcib.html                man-sys-htmlman         html
+./usr/share/man/html4/xbd.html                 man-sys-htmlman         html
+./usr/share/man/html4/xbdback.html             man-sys-htmlman         html
 ./usr/share/man/html4/xbox.html                        man-sys-htmlman         html
+./usr/share/man/html4/xenbus.html              man-sys-htmlman         html
+./usr/share/man/html4/xennet.html              man-sys-htmlman         html
 ./usr/share/man/html4/xge.html                 man-sys-htmlman         html
+./usr/share/man/html4/xpci.html                        man-sys-htmlman         html
+./usr/share/man/html4/xvif.html                        man-sys-htmlman         html
 ./usr/share/man/html4/xi.html                  man-sys-htmlman         html
 ./usr/share/man/html4/xirc.html                        man-sys-htmlman         html
 ./usr/share/man/html4/yds.html                 man-sys-htmlman         html
@@ -6555,6 +6569,7 @@
 ./usr/share/man/man4/pcdisplay.4               man-sys-man             .man
 ./usr/share/man/man4/pchb.4                    man-sys-man             .man
 ./usr/share/man/man4/pci.4                     man-sys-man             .man
+./usr/share/man/man4/pciback.4                 man-sys-man             .man
 ./usr/share/man/man4/pcic.4                    man-sys-man             .man
 ./usr/share/man/man4/pciide.4                  man-sys-man             .man
 ./usr/share/man/man4/pckbc.4                   man-sys-man             .man
@@ -6997,8 +7012,14 @@
 ./usr/share/man/man4/x86/fwhrng.4              man-sys-man             .man
 ./usr/share/man/man4/x86/hpet.4                        man-sys-man             .man
 ./usr/share/man/man4/x86/ichlpcib.4            man-sys-man             .man
+./usr/share/man/man4/xbd.4                     man-sys-man             .man
+./usr/share/man/man4/xbdback.4                 man-sys-man             .man
 ./usr/share/man/man4/xbox.4                    man-sys-man             .man
+./usr/share/man/man4/xenbus.4                  man-sys-man             .man
+./usr/share/man/man4/xennet.4                  man-sys-man             .man
 ./usr/share/man/man4/xge.4                     man-sys-man             .man
+./usr/share/man/man4/xpci.4                    man-sys-man             .man
+./usr/share/man/man4/xvif.4                    man-sys-man             .man
 ./usr/share/man/man4/xi.4                      man-sys-man             .man
 ./usr/share/man/man4/xirc.4                    man-sys-man             .man
 ./usr/share/man/man4/yds.4                     man-sys-man             .man
diff -r e3d95e987b66 -r a1bb4086a230 share/man/man4/Makefile
--- a/share/man/man4/Makefile   Tue Jan 11 00:36:03 2011 +0000
+++ b/share/man/man4/Makefile   Tue Jan 11 00:45:04 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.542 2011/01/09 15:12:34 jruoho Exp $
+#      $NetBSD: Makefile,v 1.543 2011/01/11 00:45:04 jym Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/18/93
 
 MAN=   aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -135,6 +135,9 @@
 # onewire bus and devices
 MAN+=  gpioow.4 onewire.4 owtemp.4
 
+# machine-independent Xen devices
+MAN+=  pciback.4 xbd.4 xbdback.4 xenbus.4 xennet.4 xpci.4 xvif.4
+
 # DRM devices
 MLINKS+=drm.4 i915drm.4
 MLINKS+=drm.4 mach64drm.4
diff -r e3d95e987b66 -r a1bb4086a230 share/man/man4/pciback.4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man4/pciback.4  Tue Jan 11 00:45:04 2011 +0000
@@ -0,0 +1,119 @@
+.\"    $NetBSD: pciback.4,v 1.1 2011/01/11 00:45:04 jym Exp $
+.\"
+.\" Copyright (c) 2011 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Jean-Yves Migeon <jym%NetBSD.org@localhost>.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd January 8, 2011
+.Dt PCIBACK 4 xen
+.Os
+.Sh NAME
+.Nm pciback
+.Nd Xen backend paravirtualized PCI pass-through driver
+.Sh SYNOPSIS
+.Cd "pciback* at pci?"
+.Sh DESCRIPTION
+The
+.Nm
+driver is the backend part of the PCI pass-through functionality
+that can be used by the
+.Tn Xen
+dom0 to export
+.Xr pci 4
+devices to a guest domain.
+To export a PCI device to a guest domain, the device has to be
+attached to
+.Nm
+in the dom0.
+.Pp
+When the guest domain is
+.Nx ,
+the device attached to the
+.Nm
+driver will attach to a
+.Xr xpci 4
+bus inside the guest domain.
+.Sh EXAMPLES
+To attach a device to the
+.Nm 
+driver,
+follow these steps:
+.Bl -enum -offset indent -compact
+.It
+look for the device PCI ID, via
+.Xr pcictl 8 .
+.It
+edit
+.Xr boot.conf 5 ,
+and add the PCI ID to the list of PCI IDs that you want to
+attach to
+.Nm ,
+in bus:device.function notation.
+The list is passed to dom0 module via the
+.Ic pciback.hide
+parameter:
+.Dl pciback.hide=(bus:dev.fun)(bus:dev.func)(...)
+See also
+.Xr boot 8 .
+.It
+reboot dom0.
+.It
+add the PCI ID to the list of PCI devices in the domain
+configuration file:
+.Dl pci = ['bus:dev.fun', '...'] 
+.It
+start the guest domain.
+.El
+.Sh SEE ALSO
+.Xr pci 4 ,
+.Xr xpci 4 ,
+.Xr boot 8 ,
+.Xr pcictl 8
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 5.1 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Manuel Bouyer Aq bouyer%NetBSD.org@localhost .
+.Sh CAVEATS
+Currently, to attach a device to the
+.Nm
+backend, this procedure has to be performed at
+.Xr boot 8
+time.
+In the future, it will be possible to do it without requiring
+a dom0 reboot.
+.Sh SECURITY CONSIDERATIONS
+As PCI passthrough offers the possibility for guest domains
+to send arbitrary PCI commands to a physical device, this has
+direct impact on the overall stability and security of the system.
+For example, in case of erroneous or malicious commands, the device
+could overwrite physical memory portions, via DMA.
diff -r e3d95e987b66 -r a1bb4086a230 share/man/man4/xbd.4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man4/xbd.4      Tue Jan 11 00:45:04 2011 +0000
@@ -0,0 +1,102 @@
+.\"    $NetBSD: xbd.4,v 1.1 2011/01/11 00:45:04 jym Exp $
+.\"
+.\" Copyright (c) 2011 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Jean-Yves Migeon <jym%NetBSD.org@localhost>.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd January 8, 2011
+.Dt XBD 4 xen
+.Os
+.Sh NAME
+.Nm xbd
+.Nd Xen frontend paravirtualized block device interface
+.Sh SYNOPSIS
+.Cd "xbd* at xenbus?"
+.Sh DESCRIPTION
+The
+.Nm
+interface forms the frontend part of the paravirtualized drivers
+used by
+.Tn Xen
+guest domains to have a block device interface.
+.Pp
+From a guest point of view,
+.Nm
+is similar to a hard disk, and can be treated in the very same way
+regarding partitioning, file systems creation and usage, and mounting.
+By default, a
+.Nx
+guest domain will assume that
+.Dq xbd0a
+serves as the root file system.
+.Pp
+When the host is
+.Nx ,
+the
+.Nm
+interface is backed by a
+.Xr xbdback 4
+interface.
+In the XenStore,
+.Nm xbd
+and
+.Nm xbdback
+are identified by
+.Dq vbd
+(virtual block device)
+entries.
+.Sh DIAGNOSTICS
+.Bl -diag
+.It "xbd%d: using event channel %d"
+Specifies the event channel used by this
+.Nm
+interface.



Home | Main Index | Thread Index | Old Index