From 705cbf8998e405b98f2d536f6d92c524755fe219 Mon Sep 17 00:00:00 2001
Message-Id: <705cbf8998e405b98f2d536f6d92c524755fe219@dist-git>
From: Martin Kletzander
Date: Tue, 25 Apr 2017 13:41:16 +0200
Subject: [PATCH] conf, docs: Add support for coalesce setting(s)
https://bugzilla.redhat.com/show_bug.cgi?id=1414627
We are currently parsing only rx/frames/max because that's the only
value that makes sense for us. The tun device just added support for
this one and the others are only supported by hardware devices which
we don't need to worry about as the only way we'd pass those to the
domain is using or . And in
those cases the guest can modify the settings itself.
Signed-off-by: Martin Kletzander
(cherry picked from commit 523c9960621eaf307ae8d4ae2735fb66f89d5634)
Signed-off-by: Martin Kletzander
Signed-off-by: Jiri Denemark
---
docs/formatdomain.html.in | 27 +++++
docs/schemas/domaincommon.rng | 131 +++++++++++++++++++++
src/conf/domain_conf.c | 80 +++++++++++++
src/conf/domain_conf.h | 2 +
src/qemu/qemu_domain.c | 31 +++++
.../qemuxml2argvdata/qemuxml2argv-net-coalesce.xml | 68 +++++++++++
.../qemuxml2xmlout-net-coalesce.xml | 71 +++++++++++
tests/qemuxml2xmltest.c | 1 +
8 files changed, 411 insertions(+)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-net-coalesce.xml
create mode 100644 tests/qemuxml2xmloutdata/qemuxml2xmlout-net-coalesce.xml
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index aee1e1442..7374cb243 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -5437,6 +5437,33 @@ qemu-kvm -net nic,model=? /dev/null
Since 3.1.0
+ This element provides means of setting coalesce settings for
+ some interface devices (currently only type network
+ and bridge. Currently there is just one attribute,
+ max, to tweak, in element frames for
+ the rx group, which accepts a non-negative integer
+ that specifies the maximum number of packets that will be
+ received before an interrupt.
+ Since 3.3.0
+