From 523c9960621eaf307ae8d4ae2735fb66f89d5634 Mon Sep 17 00:00:00 2001
From: Martin Kletzander
Date: Fri, 7 Apr 2017 17:46:32 +0200
Subject: [PATCH] conf, docs: Add support for coalesce setting(s)
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
---
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 +++++
.../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 b1e38f00e4..5469fc3726 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -5405,6 +5405,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
+