From 38b5f4faabccf681439d99e5394954c6ef7a5a40 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Thu, 5 Aug 2021 15:43:58 +0200 Subject: [PATCH] conf: introduce support for Fibre Channel VMID Signed-off-by: Pavel Hrdina Reviewed-by: Martin Kletzander --- docs/formatdomain.rst | 21 ++++++++++++ docs/schemas/domaincommon.rng | 14 ++++++++ src/conf/domain_conf.c | 9 ++++- src/conf/domain_conf.h | 1 + src/conf/domain_validate.c | 34 +++++++++++++++++++ .../fibrechannel-appid.xml | 21 ++++++++++++ tests/genericxml2xmltest.c | 2 ++ 7 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 tests/genericxml2xmlindata/fibrechannel-appid.xml diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 61ccd8895a..512e6abd27 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -1221,6 +1221,27 @@ Resource partitions are currently supported by the QEMU and LXC drivers, which map partition paths to cgroups directories, in all mounted controllers. :since:`Since 1.0.5` +Fibre Channel VMID +------------------- + +The FC SAN can provide various QoS levels and access control depending on the +VMID. It can also collect telemetry data at per-VM level which can be used +to enhance the IO performance of the VM. This can be configured by using +the ``appid`` attribute of ``fibrechannel`` element. The attribute contains +single string (max 128 bytes) and it is used by kernel to create VMID. + +:: + + ... + + + + ... + +Using this feature requires Fibre Channel capable HW, kernel compiled with +option ``CONFIG_BLK_CGROUP_FC_APPID`` and ``nvme_fc`` kernel module loaded. +:since:`Since 7.7.0` + :anchor:`` CPU model and topology diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 9b669d9de5..11fa24f398 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -576,6 +576,17 @@ + + + + + + [ -~]{1,128} + + + + +