From: Martin Kletzander Date: Tue, 10 Sep 2024 14:00:14 +0000 (+0200) Subject: resctrl: Relax the limit of maximum memory bandwidth allocation X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d7e3a15a98d4e2cd550a9128a23337d893cb1c27;p=libvirt.git resctrl: Relax the limit of maximum memory bandwidth allocation The value 100 represented the percentage as it was originally done from Intel in the Linux kernel and on their CPUs. Since then the situation changed and there is no error-prone way of figuring out the meaning of the value in the current configuration, let alone its possible maximum. Signed-off-by: Martin Kletzander Reviewed-by: Michal Privoznik --- diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 8ed111c182..e0a7a3e127 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -1269,12 +1269,6 @@ virResctrlAllocSetMemoryBandwidth(virResctrlAlloc *alloc, { virResctrlAllocMemBW *mem_bw = alloc->mem_bw; - if (memory_bandwidth > 100) { - virReportError(VIR_ERR_XML_ERROR, "%s", - _("Memory Bandwidth value exceeding 100 is invalid.")); - return -1; - } - if (!mem_bw) { mem_bw = g_new0(virResctrlAllocMemBW, 1); alloc->mem_bw = mem_bw;