Module Name:    src
Committed By:   jym
Date:           Tue Jan 11 00:45:05 UTC 2011

Modified Files:
        src/distrib/sets/lists/man: mi
        src/share/man/man4: Makefile
Added Files:
        src/share/man/man4: pciback.4 xbd.4 xbdback.4 xenbus.4 xennet.4 xpci.4
            xvif.4

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

Blessed by bouyer@


To generate a diff of this commit:
cvs rdiff -u -r1.1273 -r1.1274 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.542 -r1.543 src/share/man/man4/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/pciback.4 src/share/man/man4/xbd.4 \
    src/share/man/man4/xbdback.4 src/share/man/man4/xenbus.4 \
    src/share/man/man4/xennet.4 src/share/man/man4/xpci.4 \
    src/share/man/man4/xvif.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1273 src/distrib/sets/lists/man/mi:1.1274
--- src/distrib/sets/lists/man/mi:1.1273	Sun Jan  9 15:12:33 2011
+++ src/distrib/sets/lists/man/mi	Tue Jan 11 00:45:04 2011
@@ -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

Index: src/share/man/man4/Makefile
diff -u src/share/man/man4/Makefile:1.542 src/share/man/man4/Makefile:1.543
--- src/share/man/man4/Makefile:1.542	Sun Jan  9 15:12:34 2011
+++ src/share/man/man4/Makefile	Tue Jan 11 00:45:04 2011
@@ -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

Added files:

Index: src/share/man/man4/pciback.4
diff -u /dev/null src/share/man/man4/pciback.4:1.1
--- /dev/null	Tue Jan 11 00:45:05 2011
+++ src/share/man/man4/pciback.4	Tue Jan 11 00:45:04 2011
@@ -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 <[email protected]>.
+.\"
+.\" 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 [email protected] .
+.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.
Index: src/share/man/man4/xbd.4
diff -u /dev/null src/share/man/man4/xbd.4:1.1
--- /dev/null	Tue Jan 11 00:45:05 2011
+++ src/share/man/man4/xbd.4	Tue Jan 11 00:45:04 2011
@@ -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 <[email protected]>.
+.\"
+.\" 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.
+.It "xbd%d: %s MB, %d bytes/sect x %u sectors"
+Gives the total size of the
+.Nm
+block device, its sector's size and total number of sectors.
+.It "xbd%d: WARNING: cache flush not supported by backend"
+The backend driver associated to this
+.Nm
+device does not support cache flushing operation.
+This can be problematic for file system operations that require
+cache sync to avoid data loss or corruption.
+.El
+.Sh SEE ALSO
+.Xr xenbus 4 ,
+.Xr xbdback 4 ,
+.Xr dkctl 8
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 3.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Manuel Bouyer Aq [email protected] .
Index: src/share/man/man4/xbdback.4
diff -u /dev/null src/share/man/man4/xbdback.4:1.1
--- /dev/null	Tue Jan 11 00:45:05 2011
+++ src/share/man/man4/xbdback.4	Tue Jan 11 00:45:04 2011
@@ -0,0 +1,100 @@
+.\"	$NetBSD: xbdback.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 <[email protected]>.
+.\"
+.\" 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 XBDBACK 4 xen
+.Os
+.Sh NAME
+.Nm xbdback
+.Nd Xen backend paravirtualized block device interface
+.Sh SYNOPSIS
+.Cd "pseudo-device xbdback"
+.Sh DESCRIPTION
+The
+.Nm
+interface forms the backend part of the paravirtualized drivers
+used by
+.Tn Xen
+domains to offer a block device interface, similar to a hard disk.
+.Pp
+For
+.Nx ,
+the guest device name specified in the guest configuration file
+does not matter, and can be chosen arbitrarily.
+.Nm
+interfaces are backed either by a physical device directly, 
+or an image file mounted through
+.Xr vnd 4 .
+.Pp
+A
+.Nm
+interface will appear as a
+.Xr xbd 4
+block device inside a
+.Nx
+guest domain.
+In the XenStore,
+.Nm xbd
+and
+.Nm xbdback
+are identified by
+.Dq vbd
+(virtual block device)
+entries.
+.Sh DIAGNOSTICS
+.Bl -diag
+.It "xbd backend: attach device %s (size %d) for domain %d"
+Gives the device used as
+.Nm
+interface for the given guest domain, and its size, in bytes.
+.It "xbd backend 0x%x for domain %d using event channel %d, protocol %s"
+Gives the backend identifier, guest domain ID, event channel ID and
+protocol used for block level communication.
+.It "xbdback %s: can't VOP_OPEN device 0x%x: %d"
+When this message appears in the system message buffer with error 16
+.Po Er EBUSY Pc ,
+the device is likely to be already mounted.
+It musts be unmounted first, as the system will refuse to open
+it a second time.
+.El
+.Sh SEE ALSO
+.Xr xbd 4 ,
+.Xr xenbus 4 ,
+.Xr vnd 4
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 4.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Manuel Bouyer Aq [email protected] .
Index: src/share/man/man4/xenbus.4
diff -u /dev/null src/share/man/man4/xenbus.4:1.1
--- /dev/null	Tue Jan 11 00:45:05 2011
+++ src/share/man/man4/xenbus.4	Tue Jan 11 00:45:04 2011
@@ -0,0 +1,85 @@
+.\"	$NetBSD: xenbus.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 <[email protected]>.
+.\"
+.\" 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 XENBUS 4 xen
+.Os
+.Sh NAME
+.Nm xenbus
+.Nd Xen bus abstraction for paravirtualized drivers
+.Sh SYNOPSIS
+.Cd "xenbus* at hypervisor?"
+.Sh DESCRIPTION
+The
+.Nm
+interface offers an abstraction layer used for communications
+between domains.
+.Nm
+is mainly used by split paravirtualized drivers, so backend and frontend
+devices can exchange configuration information, properties, and
+statistics.
+.Pp
+.Nm
+is not used for data transfer (network frames, blocks,
+PCI commands, ...). This functionality is implemented by each paravirtualized
+driver independently, typically via shared memory pages and an event
+channel that serves as a virtual interrupt, for signaling.
+.Pp
+The
+.Nm
+abstraction offers guests the possibility to read and write information
+directly from and to XenStore, a centralized database accessible to
+all domains.
+For this reason, it also has an event channel associated to it, so that
+domains can post messages to the XenStore facility.
+.Sh DIAGNOSTICS
+.Bl -diag
+.It "xenbus0: using event channel %d"
+The event channel associated to the
+.Nm
+interface, for communication with the XenStore database.
+.El
+.Sh SEE ALSO
+.Xr pciback 4 ,
+.Xr xbd 4 ,
+.Xr xbdback 4 ,
+.Xr xennet 4 ,
+.Xr xpci 4 ,
+.Xr xvif 4
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 3.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Manuel Bouyer Aq [email protected] .
Index: src/share/man/man4/xennet.4
diff -u /dev/null src/share/man/man4/xennet.4:1.1
--- /dev/null	Tue Jan 11 00:45:05 2011
+++ src/share/man/man4/xennet.4	Tue Jan 11 00:45:04 2011
@@ -0,0 +1,105 @@
+.\"	$NetBSD: xennet.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 <[email protected]>.
+.\"
+.\" 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 XENNET 4 xen
+.Os
+.Sh NAME
+.Nm xennet
+.Nd Xen frontend paravirtualized network interface
+.Sh SYNOPSIS
+.Cd "xennet* at xenbus?"
+.Sh DESCRIPTION
+The
+.Nm
+interface forms the frontend part of the paravirtualized drivers
+used by
+.Tn Xen
+guest domains to have network connectivity.
+.Pp
+When the host domain is
+.Nx ,
+the endpoint of the
+.Nm
+interface is a
+.Xr xvif 4
+interface.
+In the XenStore,
+.Nm xvif
+and
+.Nm xennet
+are identified by
+.Dq vif
+(virtual interface)
+entries.
+.Pp
+Conceptually, frontends and backends drivers are
+similar to two Ethernet cards connected via a crossover cable.
+.Sh DIAGNOSTICS
+.Bl -diag
+.It "xennet%d: can't read mac address, err %d"
+The MAC address for this interface could not be read from XenStore.
+.It "xennet%d: %s is not a valid mac address"
+The MAC address specified in the configuration file of the newly
+created guest domain is invalid.
+.It "xennet%d: using event channel %d"
+The
+.Tn Xen
+event channel (virtual interrupt) ID
+associated to this
+.Nm .
+.It "xennet%d: using RX copy mode"
+The
+.Nm
+and its associated endpoint use copy mode for communication: packets
+are copied from one domain's memory to another.
+.It "xennet%d: using RX flip mode"
+The
+.Nm
+and its associated endpoint use flip mode for communication: packets
+are passed by remapping memory pages between domains.
+.El
+.Sh SEE ALSO
+.Xr ifmedia 4 ,
+.Xr xenbus 4 ,
+.Xr xvif 4 ,
+.Xr ifconfig 8
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 3.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Manuel Bouyer Aq [email protected]
+and
+.An Christian Limpach Aq [email protected] .
Index: src/share/man/man4/xpci.4
diff -u /dev/null src/share/man/man4/xpci.4:1.1
--- /dev/null	Tue Jan 11 00:45:05 2011
+++ src/share/man/man4/xpci.4	Tue Jan 11 00:45:05 2011
@@ -0,0 +1,81 @@
+.\"	$NetBSD: xpci.4,v 1.1 2011/01/11 00:45:05 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 <[email protected]>.
+.\"
+.\" 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 XPCI 4 xen
+.Os
+.Sh NAME
+.Nm xpci
+.Nd Xen frontend paravirtualized PCI pass-through driver
+.Sh SYNOPSIS
+.Cd "xpci* at xenbus?"
+.Cd "pci* at xpci?"
+.Sh DESCRIPTION
+The
+.Nm
+driver is the frontend part of the PCI pass-through functionality
+that can be used by
+.Tn Xen
+guest domains to communicate with PCI devices.
+.Pp
+From a guest point of view,
+.Nm
+is similar to a
+.Xr pci 4
+bus, except that the guest talks with the PCI backend driver
+instead of the real physical device directly.
+.Pp
+When the host domain is
+.Nx ,
+the
+.Nm
+driver is backed by a
+.Xr pciback 4
+driver within the dom0.
+.Sh SEE ALSO
+.Xr pci 4 ,
+.Xr pciback 4 ,
+.Xr xenbus 4
+.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 [email protected] .
+.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.
Index: src/share/man/man4/xvif.4
diff -u /dev/null src/share/man/man4/xvif.4:1.1
--- /dev/null	Tue Jan 11 00:45:05 2011
+++ src/share/man/man4/xvif.4	Tue Jan 11 00:45:05 2011
@@ -0,0 +1,107 @@
+.\"	$NetBSD: xvif.4,v 1.1 2011/01/11 00:45:05 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 <[email protected]>.
+.\"
+.\" 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 XVIF 4 xen
+.Os
+.Sh NAME
+.Nm xvif
+.Nd Xen backend paravirtualized network interface
+.Sh SYNOPSIS
+.Cd pseudo-device xvif
+.Sh DESCRIPTION
+The
+.Nm
+interface forms the backend part of the paravirtualized drivers
+used by
+.Tn Xen
+domains to offer network connectivity.
+.Pp
+When the guest domain is
+.Nx ,
+the endpoint of the
+.Nm
+interface is a
+.Xr xennet 4
+interface.
+In the XenStore,
+.Nm xvif
+and
+.Nm xennet
+are identified by
+.Dq vif
+(virtual interface)
+entries.
+.Pp
+All
+.Nm
+interfaces follow the
+.Dq xvifX.Y
+naming convention, where
+.Sq X
+represents the guest domain identifier, and
+.Sq Y
+an arbitrary identifier; most of the time, it is the
+frontend interface identifier, eg.
+.Dq xennetY .
+.Pp
+For convenience, the MAC address of an
+.Nm
+interface is chosen by incrementing the third byte of the
+MAC address of the frontend device.
+.Pp
+Conceptually, frontends and backends drivers are
+similar to two Ethernet cards connected via a crossover cable.
+.Sh DIAGNOSTICS
+.Bl -diag
+.It "xvif%d.%d: can't read %s/mac: %d"
+The MAC address for this interface could not be read from XenStore.
+.It "xvif%d.%d: %s is not a valid mac address"
+The MAC address specified in the configuration file of the newly
+created guest domain is invalid.
+.It "xvif%d.%d: Ethernet address %s"
+MAC address of the
+.Nm
+interface.
+.El
+.Sh SEE ALSO
+.Xr ifmedia 4 ,
+.Xr xennet 4 ,
+.Xr ifconfig 8
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 4.0 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Manuel Bouyer Aq [email protected] .

Reply via email to