1.\" $NetBSD: xvif.4,v 1.2 2011/01/11 10:47:45 wiz Exp $ 2.\" 3.\" Copyright (c) 2011 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Jean-Yves Migeon <jym@NetBSD.org>. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" 30.Dd January 8, 2011 31.Dt XVIF 4 xen 32.Os 33.Sh NAME 34.Nm xvif 35.Nd Xen backend paravirtualized network interface 36.Sh SYNOPSIS 37.Cd pseudo-device xvif 38.Sh DESCRIPTION 39The 40.Nm 41interface forms the backend part of the paravirtualized drivers 42used by 43.Tn Xen 44domains to offer network connectivity. 45.Pp 46When the guest domain is 47.Nx , 48the endpoint of the 49.Nm 50interface is a 51.Xr xennet 4 52interface. 53In the XenStore, 54.Nm xvif 55and 56.Nm xennet 57are identified by 58.Dq vif 59(virtual interface) 60entries. 61.Pp 62All 63.Nm 64interfaces follow the 65.Dq xvifX.Y 66naming convention, where 67.Sq X 68represents the guest domain identifier, and 69.Sq Y 70an arbitrary identifier; most of the time, it is the 71frontend interface identifier, e.g. 72.Dq xennetY . 73.Pp 74For convenience, the MAC address of an 75.Nm 76interface is chosen by incrementing the third byte of the 77MAC address of the frontend device. 78.Pp 79Conceptually, frontends and backends drivers are 80similar to two Ethernet cards connected via a crossover cable. 81.Sh DIAGNOSTICS 82.Bl -diag 83.It "xvif%d.%d: can't read %s/mac: %d" 84The MAC address for this interface could not be read from XenStore. 85.It "xvif%d.%d: %s is not a valid mac address" 86The MAC address specified in the configuration file of the newly 87created guest domain is invalid. 88.It "xvif%d.%d: Ethernet address %s" 89MAC address of the 90.Nm 91interface. 92.El 93.Sh SEE ALSO 94.Xr ifmedia 4 , 95.Xr xennet 4 , 96.Xr ifconfig 8 97.Sh HISTORY 98The 99.Nm 100driver first appeared in 101.Nx 4.0 . 102.Sh AUTHORS 103.An -nosplit 104The 105.Nm 106driver was written by 107.An Manuel Bouyer Aq bouyer@NetBSD.org . 108