Happy New Year!
This small series adds support for specifying vif outgoing rate limits
in Xen. The first patch adds support for converting rate limits between
sexpr config and domXML. The second patch does the same for xl/xm config.
The third patch adds outgoing rate limiting to the libxl driver.
V1 here
https://www.redhat.com/archives/libvir-list/2015-December/msg00899.html
In V2 I've extended support to include the sexpr config format
Jim Fehlig (3):
xenconfig: support vif bandwidth in sexpr parser and formatter
xenconfig: support vif bandwidth in xm and xl parser and formatter
libxl: support vif outgoing bandwidth QoS
src/libvirt_xenconfig.syms | 1 +
src/libxl/libxl_conf.c | 39 +++++++++++++
src/xenconfig/xen_common.c | 30 ++++++++++
src/xenconfig/xen_sxpr.c | 74 +++++++++++++++++++++++++
src/xenconfig/xen_sxpr.h | 2 +
tests/sexpr2xmldata/sexpr2xml-vif-rate.sexpr | 11 ++++
tests/sexpr2xmldata/sexpr2xml-vif-rate.xml | 51 +++++++++++++++++
tests/sexpr2xmltest.c | 2 +
tests/xlconfigdata/test-vif-rate.cfg | 26 +++++++++
tests/xlconfigdata/test-vif-rate.xml | 57 +++++++++++++++++++
tests/xlconfigtest.c | 1 +
tests/xml2sexprdata/xml2sexpr-fv-net-rate.sexpr | 10 ++++
tests/xml2sexprdata/xml2sexpr-fv-net-rate.xml | 34 ++++++++++++
tests/xml2sexprtest.c | 1 +
14 files changed, 339 insertions(+)
create mode 100644 tests/sexpr2xmldata/sexpr2xml-vif-rate.sexpr
create mode 100644 tests/sexpr2xmldata/sexpr2xml-vif-rate.xml
create mode 100644 tests/xlconfigdata/test-vif-rate.cfg
create mode 100644 tests/xlconfigdata/test-vif-rate.xml
create mode 100644 tests/xml2sexprdata/xml2sexpr-fv-net-rate.sexpr
create mode 100644 tests/xml2sexprdata/xml2sexpr-fv-net-rate.xml