From 1e915e38d422df8b3cb4e049e932a5e6900735bc Mon Sep 17 00:00:00 2001
Message-Id: <1e915e38d422df8b3cb4e049e932a5e6900735bc@dist-git>
From: =?UTF-8?q?J=C3=A1n=20Tomko?=
Date: Fri, 9 Jun 2017 12:48:56 +0200
Subject: [PATCH] conf: add iotlb attribute to iommu
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Add a new iotlb attribute to the iommu device
to control the device IOTLB support for intel-iommu.
https://bugzilla.redhat.com/show_bug.cgi?id=1283251
Reviewed-by: Pavel Hrdina
(cherry picked from commit 27b187be3988c60cd26e08ab4bcab66bed5a3646)
Signed-off-by: Ján Tomko
Signed-off-by: Jiri Denemark
---
docs/formatdomain.html.in | 10 +++++++
docs/schemas/domaincommon.rng | 5 ++++
src/conf/domain_conf.c | 23 +++++++++++++++-
src/conf/domain_conf.h | 1 +
.../qemuxml2argv-intel-iommu-device-iotlb.xml | 31 ++++++++++++++++++++++
.../qemuxml2xmlout-intel-iommu-device-iotlb.xml | 1 +
tests/qemuxml2xmltest.c | 1 +
7 files changed, 71 insertions(+), 1 deletion(-)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-intel-iommu-device-iotlb.xml
create mode 120000 tests/qemuxml2xmloutdata/qemuxml2xmlout-intel-iommu-device-iotlb.xml
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index e886e4e17e..e8a3367bac 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -7446,6 +7446,16 @@ qemu-kvm -net nic,model=? /dev/null
Since 3.4.0 (QEMU/KVM only)
+
iotlb
+
+
+ The iotlb attribute with possible values
+ on and off can be used to
+ turn on the IOTLB used to cache address translation
+ requests from devices.
+ Since 3.5.0 (QEMU/KVM only)
+