Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> --- docs/schemas/capability.rng | 10 +++++----- src/conf/capabilities.c | 2 +- src/util/virresctrl.c | 2 +- .../vircaps-x86_64-resctrl-fake-feature.xml | 4 ++-- tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng index 66dba829a826..7747a0155854 100644 --- a/docs/schemas/capability.rng +++ b/docs/schemas/capability.rng @@ -283,11 +283,11 @@ <attribute name="granularity"> <ref name="unsignedInt"/> </attribute> - <optional> - <attribute name="min"> - <ref name="unsignedInt"/> - </attribute> - </optional> + <optional> + <attribute name="min"> + <ref name="unsignedInt"/> + </attribute> + </optional> <attribute name="maxAllocs"> <ref name="unsignedInt"/> </attribute> diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c index f311377469df..15c76d791a4b 100644 --- a/src/conf/capabilities.c +++ b/src/conf/capabilities.c @@ -1056,7 +1056,7 @@ virCapabilitiesFormatMemoryBandwidth(virBuffer *buf, node->id, cpus_str); virBufferAsprintf(&childrenBuf, - "<control granularity='%u' min ='%u' " + "<control granularity='%u' min='%u' " "maxAllocs='%u'/>\n", control->granularity, control->min, control->max_allocation); diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 2a3bcda6f59b..1c41d1d35603 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -662,7 +662,7 @@ virResctrlGetMemoryBandwidthInfo(virResctrlInfo *resctrl) rv = virFileReadValueUint(&i_membw->max_allocation, SYSFS_RESCTRL_PATH "/info/MB/num_closids"); if (rv == -2) { - /* Similar reasoning to min_bandwidth above. */ + /* Similar reasoning to min_bandwidth above. */ virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Cannot get max allocation from resctrl memory info")); } diff --git a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml b/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml index 5f3678e0726b..1327d85c9815 100644 --- a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml +++ b/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml @@ -56,10 +56,10 @@ </cache> <memory_bandwidth> <node id='0' cpus='0-5'> - <control granularity='10' min ='10' maxAllocs='4'/> + <control granularity='10' min='10' maxAllocs='4'/> </node> <node id='1' cpus='6-11'> - <control granularity='10' min ='10' maxAllocs='4'/> + <control granularity='10' min='10' maxAllocs='4'/> </node> <monitor maxMonitors='176'> <feature name='mbm_total_bytes'/> diff --git a/tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml b/tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml index c386edd4b0ca..b638bbd1c96d 100644 --- a/tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml +++ b/tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml @@ -54,10 +54,10 @@ </cache> <memory_bandwidth> <node id='0' cpus='0-5'> - <control granularity='10' min ='10' maxAllocs='4'/> + <control granularity='10' min='10' maxAllocs='4'/> </node> <node id='1' cpus='6-11'> - <control granularity='10' min ='10' maxAllocs='4'/> + <control granularity='10' min='10' maxAllocs='4'/> </node> <monitor maxMonitors='176'> <feature name='mbm_total_bytes'/> -- 2.32.0