From nobody Wed Feb 11 10:15:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1489666938751802.6449843446319; Thu, 16 Mar 2017 05:22:18 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 48274C1C5DEE; Thu, 16 Mar 2017 12:22:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1F15918B3C; Thu, 16 Mar 2017 12:22:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C9BD31853D02; Thu, 16 Mar 2017 12:22:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v2GCLqXH011919 for ; Thu, 16 Mar 2017 08:21:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id BC39C5C882; Thu, 16 Mar 2017 12:21:52 +0000 (UTC) Received: from beluga.usersys.redhat.com (dhcp129-94.brq.redhat.com [10.34.129.94]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1BDB35C881; Thu, 16 Mar 2017 12:21:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 48274C1C5DEE Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 48274C1C5DEE From: Erik Skultety To: libvir-list@redhat.com Date: Thu, 16 Mar 2017 13:21:18 +0100 Message-Id: <909c06e36c4f73d79a7da1dc0490a7f635169e8d.1489666078.git.eskultet@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Erik Skultety Subject: [libvirt] [PATCH v3 14/15] docs: Document the new hostdev and address type 'mdev' X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 16 Mar 2017 12:22:17 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Erik Skultety --- docs/formatdomain.html.in | 46 ++++++++++++++++++++++++++++++++++++++++---= --- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index da0ae4aeba..3aa3ccc53a 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -3848,6 +3848,19 @@ </devices> ... =20 +

or:

+ +
+  ...
+  <devices>
+    <hostdev mode=3D'subsystem' type=3D'mdev' model=3D'vfio-pci'>
+    <source>
+      <address uuid=3D'c2177883-f1bb-47f0-914d-32a22e3a8804'>
+    </source>
+    </hostdev>
+  </devices>
+  ...
+
hostdev
The hostdev element is the main container for descr= ibing @@ -3892,12 +3905,22 @@ type passes all LUNs presented by a single HBA to the guest.
+
mdev
+
For mediated devices (Since 3.2.0) + the model attribute specifies the device API which + determines how the host's vfio driver will expose the device to = the + guest. Currently, only vfio-pci model is supported. + There are also some implications on the usage of guest's address= type + depending on the model attribute, see the + address element below.

- Note: The managed attribute is only used with PCI d= evices - and is ignored by all the other device types, thus setting - managed explicitly with other than PCI device has t= he same - effect as omitting it. + Note: The managed attribute is only used with PCI a= nd is + ignored by all the other device types, thus setting + managed explicitly with other than a PCI device has= the + same effect as omitting it. Similarly, model attrib= ute is + only supported by mediated devices and ignored by all other devi= ce + types.

source
@@ -3962,6 +3985,12 @@ is the vhost_scsi wwpn (16 hexadecimal digits with a prefix of "naa.") established in the host configfs. +
mdev
+
Mediated devices (Since 3.2.0) = are + described by the address element. The + address element contains so far a single mandatory + attribute uuid. +
vendor, product
@@ -4005,8 +4034,13 @@ For PCI devices the element carries 4 attributes allowing to designa= te the device as can be found with the lspci or with virsh nodedev-list. For SCSI devices a 'drive' - address type must be used. See above for - more details on the address element. + address type must be used. For mediated devices, which are only soft= ware + devices defining an allocation of resources on the physical parent d= evice, + the address type used must conform to the model attribu= te + of element hostdev, e.g. any address type other than PC= I for + vfio-pci device API will result in an error. + See above for more details on the a= ddress + element.
driver
PCI devices can have an optional driver --=20 2.12.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list