summaryrefslogtreecommitdiff
path: root/usr/src/man/man7d/vioblk.7d
blob: 29bf1945851f57a280c18962abb440534f2d0c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.\"
.\" This file and its contents are supplied under the terms of the
.\" Common Development and Distribution License ("CDDL"), version 1.0.
.\" You may only use this file in accordance with the terms of version
.\" 1.0 of the CDDL.
.\"
.\" A full copy of the text of the CDDL should have accompanied this
.\" source.  A copy of the CDDL is also available via the Internet at
.\" http://www.illumos.org/license/CDDL.
.\"
.\"
.\" Copyright 2020 Oxide Computer Company
.\"
.Dd October 3, 2020
.Dt VIOBLK 7D
.Os
.Sh NAME
.Nm vioblk
.Nd virtio block device
.Sh SYNOPSIS
.Pa /dev/dsk/cXt0d0
.Pa /dev/rdsk/cXt0d0
.Sh DESCRIPTION
The
.Nm
driver is a
.Xr blkdev 7D
based device that supports the virtio para-virtualization block device
specification which is commonly used by many hypervisors and emulators.
The device supports what the specification calls the more commonly found
.Sq legacy
interface for devices.
.Pp
The driver supports the following features, if offered by the device:
.Bl -dash
.It
Volatile write-cache
.It
Discarding unused sectors
.Pq ala TRIM, UNMAP
.It
Read-only device support
.It
Physical block sizes that are distinct from logical 512-byte blocks
.It
Synthesized disk geometry
.El
.Sh APPLICATION PROGRAMMING INTERFACE
For each device instance, a
.Xr blkdev 7D
instance is created and treated as an independent controller with a
single device, meaning that the
.Em cX
part of
.Em cXt0d0
will vary for each device.
Because the driver leverages the
.Xr blkdev 7D
framework, most standard disk manipulation utilities will function such
as
.Xr diskinfo 1M
for discovering devices,
.Xr format 1M
for manipulating partition tables,
.Xr iostat 1M
for seeing device I/O statistics, and a subset of the
.Xr dkio 7IO
ioctl requests to retrieve information about the device.
.Sh ARCHITECTURE
The
.Nm
driver is only supported on
.Sy x86 .
.Sh FILES
.Bl -tag -width Pa
.It Pa /dev/dsk/cXt0d0
Block device minor node.
.It Pa /dev/rdsk/cXt0d0
Character device minor node.
.It Pa /kernel/drv/amd64/vioblk
x86 device driver.
.El
.Sh SEE ALSO
.Xr diskinfo 1M ,
.Xr blkdev 7D ,
.Xr virtio 7D ,
.Xr dkio 7I
.Rs
.%T Virtual I/O Device (VIRTIO) Version 1.1
.%D April, 2019
.%U https://docs.oasis-open.org/virtio/virtio/v1.1/virtio-v1.1.html
.Re