From nobody Tue Feb 10 01:20:02 2026
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of redhat.com designates
207.211.31.81 as permitted sender) client-ip=207.211.31.81;
envelope-from=libvir-list-bounces@redhat.com;
helo=us-smtp-delivery-1.mimecast.com;
Authentication-Results: mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass(p=none dis=none) header.from=redhat.com
ARC-Seal: i=1; a=rsa-sha256; t=1590091794; cv=none;
d=zohomail.com; s=zohoarc;
b=WaScwo53pFNEoPYRNId0K/2mGA0cvyoYRQx2SOkBdhGi9waoRseSw1m2KyhApAlCksiQWxMpFIC8fWr0I7mhTdWLUZVHqKtv8hg73ZVJK1/uS/kraYyZKiETY5w1wchPWhJoy3Mo+uB14aFAc0rrqAfS0YSmxasqpl3NR38Fwnw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
s=zohoarc;
t=1590091794;
h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To;
bh=rL8oNXEa4c57bLrbpJlMrhQKcJHeBXUrznT1oeOeU9k=;
b=kUtgAFKBPGP2q88RpFl6Md3z0o6s54MiWvlZdkocF+eVyV9LhcH4P0sjiHCbrup7yFAOLOf2nNN11InqLiG8UfQ9ZPRqFlwy8/cvNM+KQGgSaXC8mPFJ/TMTn8/pKrCZ+M0RWxFfO2D04Nfem2Oqsyt7bLKL0pknjHXGU+hGnCo=
ARC-Authentication-Results: i=1; mx.zohomail.com;
dkim=pass;
spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=pass header.from=
- The generic format of a host device XML can be seen below.
- To identify a device both within the host and the device tree hierar=
chy,
- the following elements are used:
+ Details of the XML format of a host device can be found here. Of particular interest is the
+ capability element, which describes features supported =
by
+ the device. Some specific device types are addressed in more detail
+ below.
namepathparentname element or computer if the device=
does
- not have any parent.
- drivercapabilitytype the value of which determi=
nes
- the type of the device. Currently recognized values for the attr=
ibute
- are:
- system,
- pci,
- usb,
- usb_device,
- net,
- scsi,
- scsi_host (Since 0.4.7=
),
- fc_host,
- vports,
- scsi_target (Since 0.7.3),
- storage (Since 1.0.4),
- scsi_generic (Since 1.0.7),
- drm (Since 3.1.0), and
- mdev (Since 3.4.0).
- This element can be nested in which case it further specifies a
- device's capability. Refer to specific device types to see more =
values
- for the type attribute which are exclusive.
-
<device>
@@ -191,45 +143,13 @@
A PCI device capable of creating mediated devices will include a nes=
ted
capability mdev_types which enumerates all supported md=
ev
types on the physical device, along with the type attributes availab=
le
- through sysfs:
+ through sysfs. A detailed description of the XML format for the mdev
+ capability can be found here.
-
- typeid which h=
olds
- an official vendor-supplied identifier for the type.
- Since 3.4.0
- namename element holds a vendor-supplied code name for
- the given mediated device type. This is an optional element.
- Since 3.4.0
- deviceAPIavailableInstances- For a more info about mediated devices, refer to the - paragraph below. + The following example shows how we might represent an Nvidia GPU dev= ice + that supports mediated devices. See below for more + information about mediated devices.
=20
@@ -262,32 +182,11 @@
as multiple separate PCIe devices on the host's PCI bus, mediated de=
vices
only appear on the mdev virtual bus. Therefore, no detach/reattach
procedure from/to the host driver procedure is involved even though
- mediated devices are used in a direct device assignment manner.
+ mediated devices are used in a direct device assignment manner. A
+ detailed description of the XML format for the mdev capability can be
+ found here.
=20
-
- The following sub-elements and attributes are exposed within the
- capability element:
-
-
- typeid which h=
olds
- an official vendor-supplied identifier for the type.
- Since 3.4.0
- iommuGroupnumber which=
holds
- the IOMMU group number the mediated device belongs to.
- Since 3.4.0
-
<device>
diff --git a/docs/formatnode.html.in b/docs/formatnode.html.in
index 7dcd3638ff..76eae928de 100644
--- a/docs/formatnode.html.in
+++ b/docs/formatnode.html.in
@@ -33,9 +33,23 @@
to provide more specific names, such as
"net_eth1_00_27_13_6a_fe_00".
+ pathparentname element or computer if the device d=
oes
+ not have any parent.
+ driverdevnode/dev
@@ -138,8 +152,40 @@
means such device cannot be used for PCI passthrough.
Since 1.3.3
mdev_typestype
+ elements, which list all mdev types supported on the
+ physical device. Since 3.4.0
+ Each type element has a single id=
code>
+ attribute that holds an official vendor-supplied ident=
ifier
+ for the type. It supports the following sub-elements:
+
+ name
+ -
+ The
name element holds a vendor-sup=
plied
+ code name for the given mediated device type. Th=
is is
+ an optional element.
+
+ deviceAPI
+ -
+ The value of this element describes how an instanc=
e of
+ the given type will be presented to the guest by t=
he
+ VFIO framework.
+
+ availableInstances
+ -
+ This element reports the current state of resource
+ allocation. In other words, how many instances of =
the
+ given type can still be successfully created on the
+ physical device.
+
+
+ numarender.mdevtypeid which holds an official vendor-supplied
+ identifier for the type.
+ iommuGroupnumber
+ which holds the IOMMU group number the mediated device bel=
ongs
+ to.
+ ccw