Various improvements.

This commit is contained in:
wiz 2011-11-26 22:36:14 +00:00
parent b9701adc0f
commit 48d5e162f9
3 changed files with 24 additions and 20 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: vioif.4,v 1.1 2011/11/26 15:04:45 minoura Exp $ .\" $NetBSD: vioif.4,v 1.2 2011/11/26 22:36:14 wiz Exp $
.\" .\"
.\" Copyright (C) 2011 Minoura Makoto. .\" Copyright (C) 2011 Minoura Makoto.
.\" All rights reserved. .\" All rights reserved.
@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.Dd .Dd November 26, 2011
.Dt VIOIF 4 .Dt VIOIF 4
.Os .Os
.Sh NAME .Sh NAME
@ -34,15 +34,15 @@
.Cd "virtio* at pci? dev ? function ?" .Cd "virtio* at pci? dev ? function ?"
.Cd "vioif* at virtio?" .Cd "vioif* at virtio?"
.Sh DESCRIPTION .Sh DESCRIPTION
VirtIO .Xr virtio 4
defines an interface for efficient, standard and extensible I/O between the defines an interface for efficient, standard, and extensible I/O between the
hypervisor and the virtual machine. hypervisor and the virtual machine.
The The
.Nm .Nm
driver supports virtio-compliant virtual network interface cards. driver supports virtio-compliant virtual network interface cards.
.Sh SEE ALSO .Sh SEE ALSO
.Xr netintro 4 ,
.Xr virtio 4 , .Xr virtio 4 ,
.Xr netinto 4 ,
.Xr ifconfig 8 .Xr ifconfig 8
.Rs .Rs
.%A Rusty Russell, IBM Corporation .%A Rusty Russell, IBM Corporation

View File

@ -1,4 +1,4 @@
.\" $NetBSD: viomb.4,v 1.1 2011/11/26 15:04:45 minoura Exp $ .\" $NetBSD: viomb.4,v 1.2 2011/11/26 22:36:14 wiz Exp $
.\" .\"
.\" Copyright (C) 2011 Minoura Makoto. .\" Copyright (C) 2011 Minoura Makoto.
.\" All rights reserved. .\" All rights reserved.
@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.Dd .Dd November 26, 2011
.Dt VIOMB 4 .Dt VIOMB 4
.Os .Os
.Sh NAME .Sh NAME
@ -34,8 +34,10 @@
.Cd "virtio* at pci? dev ? function ?" .Cd "virtio* at pci? dev ? function ?"
.Cd "viomb* at virtio?" .Cd "viomb* at virtio?"
.Sh DESCRIPTION .Sh DESCRIPTION
VirtIO defines an interface for efficient, standard and extensible I/O between .Xr virtio 4
the hypervisor and the virtual machine. The defines an interface for efficient, standard, and extensible I/O between
the hypervisor and the virtual machine.
The
.Nm .Nm
driver supports the virtio-compliant memory ballooning device. driver supports the virtio-compliant memory ballooning device.
.Pp .Pp
@ -60,9 +62,11 @@ device tells the hypervisor the guest physical memory address of the
allocated memory via VirtIO memory ballooning device. allocated memory via VirtIO memory ballooning device.
.El .El
.Pp .Pp
The sysctl node hw.viomb.npages shows the requested number of memory pages The sysctl node
to return to the hypervisor, while hw.viomb.actual shows the actual .Li hw.viomb.npages
number of memory pages that is already returned to the hypervisor. shows the requested number of memory pages to return to the hypervisor, while
.Li hw.viomb.actual
shows the actual number of memory pages that are already returned to the hypervisor.
.Sh SEE ALSO .Sh SEE ALSO
.Xr virtio 4 , .Xr virtio 4 ,
.Xr sysctl 8 .Xr sysctl 8
@ -77,5 +81,5 @@ The
.Nm .Nm
device driver appeared in device driver appeared in
.Nx 6.0 . .Nx 6.0 .
.Sh BUG .Sh BUGS
The userland interface should be same as the Xen ballooning device. The userland interface should be same as the Xen ballooning device.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: virtio.4,v 1.3 2011/11/26 15:04:45 minoura Exp $ .\" $NetBSD: virtio.4,v 1.4 2011/11/26 22:36:14 wiz Exp $
.\" .\"
.\" Copyright (c) 2011 The NetBSD Foundation, Inc. .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -48,18 +48,18 @@ available to the virtual machine.
driver itself provides the core infrastructure to communicate driver itself provides the core infrastructure to communicate
with the hypervisor (called virtqueues) and supports the following devices: with the hypervisor (called virtqueues) and supports the following devices:
.Bl -tag -width xxxxx .Bl -tag -width xxxxx
.It Nm ld .It Xr ld 4
A Disk device. A Disk device.
.It Nm vioif .It Xr vioif 4
An Ethernet device. An Ethernet device.
.It Nm viomb .It Xr viomb 4
A pseudo-device to release memory back to the hypervisor. A pseudo-device to release memory back to the hypervisor.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr pci 4 ,
.Xr viomb 4 ,
.Xr ld 4 , .Xr ld 4 ,
.Xr vioif 4 .Xr pci 4 ,
.Xr vioif 4 ,
.Xr viomb 4
.Pp .Pp
.Rs .Rs
.%A Rusty Russell, IBM Corporation .%A Rusty Russell, IBM Corporation