From b020cf73fed761067c3b6196d993545f072c896f Mon Sep 17 00:00:00 2001
From: Michal Privoznik
Date: Mon, 23 Jan 2017 14:32:13 +0100
Subject: [PATCH] domain_conf: Introduce to
So far we allow to set MTU for libvirt networks. However, not all
domain interfaces have to be plugged into a libvirt network and
even if they are, they might want to have a different MTU (e.g.
for testing purposes).
Signed-off-by: Michal Privoznik
---
docs/formatdomain.html.in | 19 ++++++
docs/news.xml | 8 +++
docs/schemas/domaincommon.rng | 3 +
docs/schemas/networkcommon.rng | 9 +++
src/conf/domain_conf.c | 10 ++++
src/conf/domain_conf.h | 1 +
src/qemu/qemu_domain.c | 29 +++++++++
src/qemu/qemu_domain.h | 2 +
.../qemuxml2argvdata/qemuxml2argv-net-mtu.xml | 60 +++++++++++++++++++
9 files changed, 141 insertions(+)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-net-mtu.xml
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 3f7f87524a..1bbece0e52 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -5215,6 +5215,25 @@ qemu-kvm -net nic,model=? /dev/null
Since 0.9.5
+ This element provides means of setting MTU of the virtual network link.
+ Currently there is just one attribute size which accepts a
+ non-negative integer which specifies the MTU size for the interface.
+ Since 3.1.0
+