From nobody Thu Apr 25 11:13:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555334083; cv=none; d=zoho.com; s=zohoarc; b=MOmYN4d3BbvVRpm6pEFO31IPJSQ1EUnE445kP/2uUs8OIk5KqBl+AZqrR4o6HSvTZqERb6z1YsPAuWmTXUvUlEBMpUjtWpP6wehjjlKEWJs8YJqGAmGYBYGYD+frIOC6+vKq1CIBX2//Pqg+UqjCUQvBcDEwzCvLG7QDQ8i6P8w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555334083; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=0A6LuWaZ45n7QXulgnhVq7tgeafS0IBa1sYvsz8KAY0=; b=E+emSaXIn7UsftdgcEJjYZcSoTlJDcq7y8PIIJP5mPLfvMEvjRK4U9ik40ImiSYIDQTVEln8HDJkmCntilRI+ir8ywTaHIwkESg/tSw3JBt4c+dgnS71jgCPDyKDVk+qifnhNt8XfJk25wD38JRNPrlxtucqmhAI0RrsqzhiGyk= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155533408325010.266813291244262; Mon, 15 Apr 2019 06:14:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5D46430B96D0; Mon, 15 Apr 2019 13:14:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 32F4819C7E; Mon, 15 Apr 2019 13:14:40 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AF6CE3FB11; Mon, 15 Apr 2019 13:14:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3FDEaGO003637 for ; Mon, 15 Apr 2019 09:14:36 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3857D608C6; Mon, 15 Apr 2019 13:14:36 +0000 (UTC) Received: from caroline (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E3CA608DE for ; Mon, 15 Apr 2019 13:14:33 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline (Postfix) with ESMTP id 767941206D9 for ; Mon, 15 Apr 2019 15:14:32 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 15 Apr 2019 15:14:22 +0200 Message-Id: <40424524c81051a90b8816efa09d1aca5a707324.1555334034.git.mkletzan@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 1/6] conf: Parse common scheduler attributes in separate function X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Mon, 15 Apr 2019 13:14:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" This will become useful later when parsing emulatorsched parameters which d= on't need the rest of the current function. Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- src/conf/domain_conf.c | 70 +++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 29 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index b969a9f6e566..15838c2a23f5 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18441,45 +18441,24 @@ virDomainLoaderDefParseXML(xmlNodePtr node, } =20 =20 -static virBitmapPtr -virDomainSchedulerParse(xmlNodePtr node, - const char *name, - virProcessSchedPolicy *policy, - int *priority) +static int +virDomainSchedulerParseCommonAttrs(xmlNodePtr node, + virProcessSchedPolicy *policy, + int *priority) { - virBitmapPtr ret =3D NULL; int pol =3D 0; VIR_AUTOFREE(char *) tmp =3D NULL; =20 - if (!(tmp =3D virXMLPropString(node, name))) { - virReportError(VIR_ERR_XML_ERROR, - _("Missing attribute '%s' in element '%sched'"), - name, name); - goto error; - } - - if (virBitmapParse(tmp, &ret, VIR_DOMAIN_CPUMASK_LEN) < 0) - goto error; - - if (virBitmapIsAllClear(ret)) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("'%s' scheduler bitmap '%s' is empty"), - name, tmp); - goto error; - } - - VIR_FREE(tmp); - if (!(tmp =3D virXMLPropString(node, "scheduler"))) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Missing scheduler attribute")); - goto error; + return -1; } =20 if ((pol =3D virProcessSchedPolicyTypeFromString(tmp)) <=3D 0) { virReportError(VIR_ERR_INTERNAL_ERROR, _("Invalid scheduler attribute: '%s'"), tmp); - goto error; + return -1; } *policy =3D pol; =20 @@ -18490,16 +18469,49 @@ virDomainSchedulerParse(xmlNodePtr node, if (!(tmp =3D virXMLPropString(node, "priority"))) { virReportError(VIR_ERR_XML_ERROR, "%s", _("Missing scheduler priority")); - goto error; + return -1; } =20 if (virStrToLong_i(tmp, NULL, 10, priority) < 0) { virReportError(VIR_ERR_XML_ERROR, "%s", _("Invalid value for element priority")); - goto error; + return -1; } } =20 + return 0; +} + + +static virBitmapPtr +virDomainSchedulerParse(xmlNodePtr node, + const char *name, + virProcessSchedPolicy *policy, + int *priority) +{ + virBitmapPtr ret =3D NULL; + VIR_AUTOFREE(char *) tmp =3D NULL; + + if (!(tmp =3D virXMLPropString(node, name))) { + virReportError(VIR_ERR_XML_ERROR, + _("Missing attribute '%s' in element '%sched'"), + name, name); + goto error; + } + + if (virBitmapParse(tmp, &ret, VIR_DOMAIN_CPUMASK_LEN) < 0) + goto error; + + if (virBitmapIsAllClear(ret)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, + _("'%s' scheduler bitmap '%s' is empty"), + name, tmp); + goto error; + } + + if (virDomainSchedulerParseCommonAttrs(node, policy, priority) < 0) + goto error; + return ret; =20 error: --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu Apr 25 11:13:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555334083; cv=none; d=zoho.com; s=zohoarc; b=nm3/aFXEl/a30Z9xPrJsubGxlIq80vY8WV3oxJRvc4XGZ+NaqJe0OOwx3VeS3QKxnaVTvmQeRp7rflJpF10AAWFnP+kdRxPnhLiS997BFT4FQtmx1U8TY+c9DK7SgnlMj3j8PS0QQ5tby5PLv5h8NpKasZ58jquJrGwZLxunlNU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555334083; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=EAvOsH/3stG7zIIBvMPodgK8G+G5eJ8AFBJ1BQk/SqQ=; b=nts4SJGTPoyGrheNH+7yISRrT0MRzygUU2n9qAuLOMb7hCACRbJEr7LfYDrdyUn/XTO7QMGMNCguhPJjcBAxfMCeW6ur53GwKaf7xwLa1jxtsMKRIHzrL3lTK7kQ1lU7m9Y4h/IzJ0TGoV/jlOnJ69u4lYPlMwgC6stSjUdP/G8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555334083385464.38407352118327; Mon, 15 Apr 2019 06:14:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 57F45C0AC91E; Mon, 15 Apr 2019 13:14:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 91E4360C43; Mon, 15 Apr 2019 13:14:40 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 07F513FB12; Mon, 15 Apr 2019 13:14:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3FDEa10003638 for ; Mon, 15 Apr 2019 09:14:36 -0400 Received: by smtp.corp.redhat.com (Postfix) id 38FC8608CC; Mon, 15 Apr 2019 13:14:36 +0000 (UTC) Received: from caroline (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0CDE2608D8 for ; Mon, 15 Apr 2019 13:14:33 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline (Postfix) with ESMTP id 86BA51206DB for ; Mon, 15 Apr 2019 15:14:32 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 15 Apr 2019 15:14:23 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 2/6] conf: Format thread IDs optionally X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 15 Apr 2019 13:14:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" This will be used later when we want to format emulator scheduler parameters which don't apply for multiple threads. Signed-off-by: Martin Kletzander squash! conf: Do not format negative thread IDs Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- src/conf/domain_conf.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 15838c2a23f5..e7b8b51aad0e 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -27205,22 +27205,25 @@ static void virDomainSchedulerFormat(virBufferPtr buf, const char *name, virDomainThreadSchedParamPtr sched, - size_t id) + size_t id, + bool multiple_threads) { switch (sched->policy) { case VIR_PROC_POLICY_BATCH: case VIR_PROC_POLICY_IDLE: - virBufferAsprintf(buf, "<%ssched " - "%ss=3D'%zu' scheduler=3D'%s'/>\n", - name, name, id, + virBufferAsprintf(buf, "<%ssched", name); + if (multiple_threads) + virBufferAsprintf(buf, " %ss=3D'%zu'", name, id); + virBufferAsprintf(buf, " scheduler=3D'%s'/>\n", virProcessSchedPolicyTypeToString(sched->pol= icy)); break; =20 case VIR_PROC_POLICY_RR: case VIR_PROC_POLICY_FIFO: - virBufferAsprintf(buf, "<%ssched " - "%ss=3D'%zu' scheduler=3D'%s' priority=3D'%d= '/>\n", - name, name, id, + virBufferAsprintf(buf, "<%ssched", name); + if (multiple_threads) + virBufferAsprintf(buf, " %ss=3D'%zu'", name, id); + virBufferAsprintf(buf, " scheduler=3D'%s' priority=3D'%d'/>\n", virProcessSchedPolicyTypeToString(sched->pol= icy), sched->priority); break; @@ -27489,13 +27492,14 @@ virDomainCputuneDefFormat(virBufferPtr buf, =20 for (i =3D 0; i < def->maxvcpus; i++) { virDomainSchedulerFormat(&childrenBuf, "vcpu", - &def->vcpus[i]->sched, i); + &def->vcpus[i]->sched, i, true); } =20 for (i =3D 0; i < def->niothreadids; i++) { virDomainSchedulerFormat(&childrenBuf, "iothread", &def->iothreadids[i]->sched, - def->iothreadids[i]->iothread_id); + def->iothreadids[i]->iothread_id, + true); } =20 for (i =3D 0; i < def->nresctrls; i++) --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu Apr 25 11:13:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555334112; cv=none; d=zoho.com; s=zohoarc; b=Jw2FJiMLZDtrgIJNqqruxFFOBwNsr0MLUauogmICTpOCCoAWMG3NNzss6ilXhntd6MIoUithaL03rp743KPsyPu1r8eLptYqBD34Acb2rLCaGQILAJvNUgOqtl+VXo5BsyK4qApHCWhAjyByxX1v4DIlnkVrY8KWBl8gc7Ck7wA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555334112; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=I8uc2QD79RA3zJ7E5640ZE76bjDDlWoaAbWVRGzpM0I=; b=Q99O+xLWUWTUEq+JlYdfXnmKLDxSRHthkxb12krRD2UriTYOkVdzmdSw+szM24OqQrZIrPf2jQEQG+DeQBnUrS9j0VrAqBWaVThOXTHmS/F7hy/K1NdlwMhGV+1XVAyI6YC+1GZs7x74iDMFyz1cuYoMV8L7GbkVCE+JYnTCXjE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555334112749374.63078901666995; Mon, 15 Apr 2019 06:15:12 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D73F03DBEA; Mon, 15 Apr 2019 13:15:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A189919724; Mon, 15 Apr 2019 13:15:09 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 55FC9181AC8E; Mon, 15 Apr 2019 13:15:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3FDEb06003665 for ; Mon, 15 Apr 2019 09:14:37 -0400 Received: by smtp.corp.redhat.com (Postfix) id B47ED1001E85; Mon, 15 Apr 2019 13:14:37 +0000 (UTC) Received: from caroline (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8959D108F83B for ; Mon, 15 Apr 2019 13:14:33 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline (Postfix) with ESMTP id 993A41206F3 for ; Mon, 15 Apr 2019 15:14:32 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 15 Apr 2019 15:14:24 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 3/6] docs: Mention iothreadsched element in the docs and reword X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 15 Apr 2019 13:15:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Just one missing occurrence of iothreadsched fixed plus some rewording for = this to make more sense for the readers. Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- docs/formatdomain.html.in | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 0e3799061d93..af4b88c60984 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -937,14 +937,16 @@ =20
vcpusched and iothreadsched
- The optional vcpusched elements specifies the schedul= er - type (values batch, idle, fifo, - rr) for particular vCPU/IOThread threads (based on - vcpus and iothreads, leaving out - vcpus/iothreads sets the default). Valid - vcpus values start at 0 through one less than the - number of vCPU's defined for the domain. Valid iothreads - values are described in the iothreadids + The optional vcpusched and iothreadsched + elements specify the scheduler type + (values batch, idle, fifo, + rr) for particular vCPU and IOThread threads respeciv= ely. + The attributes vcpus and iothreads select + which vCPUs/IOThreads this setting applies to, leaving them out se= ts the + default. Valid vcpus values start at 0 through one l= ess + than the number of vCPU's defined for the + domain. Valid iothreads values are described in + the iothreadids description<= /a>. If no iothreadids are defined, then libvirt numbers IOThreads from 1 to the number of iothreads available --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu Apr 25 11:13:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555334097; cv=none; d=zoho.com; s=zohoarc; b=NHKfZPyggZhqCugRm6q4A8LLFCMKDSkZ//bkNH/UAq1KkAjv5T+dFRgwbW9tul+HeLR9A6WjIKr3wHc3ZcvpEjz6WmGhR9G+OtLCxwyHxN91Ui8Icbgt8zZ2iVn86qcRrUTqc25q2U9nwYsPkhK9BvAtaqarz6qesj3WSJ33PRI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555334097; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=2Wh7GyUWIS3UX9GAQZVAj+WYB50ncv5e/wX9quHptJY=; b=WmBrnnwC6aPiM2dXkiOsW7tc0C0HuMnPZYvHtqa+rlK3hplURumvPUnlQkRbqtqaRgdlRn3osR9QhRlQT292C/gH4f+9cWb1Khqrk6RshTSgrJXbbcL7yulpCv61AZEBeutC61JmamJf2zA5/NzPurG7a7IZLeFKA3ynnPRlPUo= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555334097847921.7273562807713; Mon, 15 Apr 2019 06:14:57 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2ECBBC057F4B; Mon, 15 Apr 2019 13:14:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 09D2F5D707; Mon, 15 Apr 2019 13:14:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id BC00A181AC45; Mon, 15 Apr 2019 13:14:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3FDEapQ003647 for ; Mon, 15 Apr 2019 09:14:36 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6314E608CC; Mon, 15 Apr 2019 13:14:36 +0000 (UTC) Received: from caroline (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E446608F8 for ; Mon, 15 Apr 2019 13:14:33 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline (Postfix) with ESMTP id ABA3D1206F6 for ; Mon, 15 Apr 2019 15:14:32 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 15 Apr 2019 15:14:25 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 4/6] conf: Add support for emulatorsched X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 15 Apr 2019 13:14:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- docs/formatdomain.html.in | 17 ++++++---- docs/schemas/domaincommon.rng | 5 +++ src/conf/domain_conf.c | 44 +++++++++++++++++++++++++ src/conf/domain_conf.h | 1 + tests/genericxml2xmlindata/cputune.xml | 37 +++++++++++++++++++++ tests/genericxml2xmloutdata/cputune.xml | 40 ++++++++++++++++++++++ tests/genericxml2xmltest.c | 2 ++ 7 files changed, 140 insertions(+), 6 deletions(-) create mode 100644 tests/genericxml2xmlindata/cputune.xml create mode 100644 tests/genericxml2xmloutdata/cputune.xml diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index af4b88c60984..74d32e2a9b8c 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -935,15 +935,19 @@ Only QEMU driver support since 2.1.0
=20 -
vcpusched and iothreadsched
+
vcpusched, iothreadsched + and emulatorsched
- The optional vcpusched and iothreadsched - elements specify the scheduler type + The optional + vcpusched, iothreadsched + and emulatorsched elements specify the scheduler type (values batch, idle, fifo, - rr) for particular vCPU and IOThread threads respeciv= ely. - The attributes vcpus and iothreads select + rr) for particular vCPU, IOThread and emulator threads + respecively. For vcpusched and iothreadsched + the attributes vcpus and iothreads select which vCPUs/IOThreads this setting applies to, leaving them out se= ts the - default. Valid vcpus values start at 0 through one l= ess + default. The element emulatorsched does not have that + attribute. Valid vcpus values start at 0 through one = less than the number of vCPU's defined for the domain. Valid iothreads values are described in the iothreadids @@ -955,6 +959,7 @@ well (and is ignored for non-real-time ones). The value range for the priority depends on the host kernel (usually 1-99). Since 1.2.13 + emulatorsched since 5.3.0
=20
cachetuneSince 4.1.0 diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 623ef28719df..111b85c36fd3 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -967,6 +967,11 @@ + + + + + diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index e7b8b51aad0e..17e8975be399 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -3396,6 +3396,7 @@ void virDomainDefFree(virDomainDefPtr def) virDomainIOThreadIDDefArrayFree(def->iothreadids, def->niothreadids); =20 virBitmapFree(def->cputune.emulatorpin); + VIR_FREE(def->cputune.emulatorsched); =20 virDomainNumaFree(def->numa); =20 @@ -18483,6 +18484,25 @@ virDomainSchedulerParseCommonAttrs(xmlNodePtr node, } =20 =20 +static int +virDomainEmulatorSchedParse(xmlNodePtr node, + virDomainDefPtr def) +{ + VIR_AUTOFREE(virDomainThreadSchedParamPtr) sched =3D NULL; + + if (VIR_ALLOC(sched) < 0) + return -1; + + if (virDomainSchedulerParseCommonAttrs(node, + &sched->policy, + &sched->priority) < 0) + return -1; + + VIR_STEAL_PTR(def->cputune.emulatorsched, sched); + return 0; +} + + static virBitmapPtr virDomainSchedulerParse(xmlNodePtr node, const char *name, @@ -19913,6 +19933,25 @@ virDomainDefParseXML(xmlDocPtr xml, } VIR_FREE(nodes); =20 + if ((n =3D virXPathNodeSet("./cputune/emulatorsched", ctxt, &nodes)) <= 0) { + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("cannot extract emulatorsched nodes")); + goto error; + } + + if (n) { + if (n > 1) { + virReportError(VIR_ERR_XML_ERROR, "%s", + _("only one emulatorsched is supported")); + VIR_FREE(nodes); + goto error; + } + + if (virDomainEmulatorSchedParse(nodes[0], def) < 0) + goto error; + } + VIR_FREE(nodes); + if ((n =3D virXPathNodeSet("./cputune/cachetune", ctxt, &nodes)) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("cannot extract cachetune nodes")); @@ -27490,6 +27529,11 @@ virDomainCputuneDefFormat(virBufferPtr buf, VIR_FREE(cpumask); } =20 + if (def->cputune.emulatorsched) { + virDomainSchedulerFormat(&childrenBuf, "emulator", + def->cputune.emulatorsched, 0, false); + } + for (i =3D 0; i < def->maxvcpus; i++) { virDomainSchedulerFormat(&childrenBuf, "vcpu", &def->vcpus[i]->sched, i, true); diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 12eb71c1977e..988ef90f1189 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -2159,6 +2159,7 @@ struct _virDomainCputune { unsigned long long iothread_period; long long iothread_quota; virBitmapPtr emulatorpin; + virDomainThreadSchedParamPtr emulatorsched; }; =20 =20 diff --git a/tests/genericxml2xmlindata/cputune.xml b/tests/genericxml2xmli= ndata/cputune.xml new file mode 100644 index 000000000000..999c8cef73cd --- /dev/null +++ b/tests/genericxml2xmlindata/cputune.xml @@ -0,0 +1,37 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 4 + 4 + + 2048 + 1000000 + -1 + + + + + + + + + + + hvm + + + + + 48 + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + diff --git a/tests/genericxml2xmloutdata/cputune.xml b/tests/genericxml2xml= outdata/cputune.xml new file mode 100644 index 000000000000..f9f99a4846e6 --- /dev/null +++ b/tests/genericxml2xmloutdata/cputune.xml @@ -0,0 +1,40 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219100 + 219100 + 4 + 4 + + 2048 + 1000000 + -1 + + + + + + + + + + + + + + hvm + + + + + 48 + + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index 4393d444641d..1840d6e6a8f9 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -149,6 +149,8 @@ mymain(void) =20 DO_TEST("launch-security-sev"); =20 + DO_TEST_DIFFERENT("cputune"); + virObjectUnref(caps); virObjectUnref(xmlopt); =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu Apr 25 11:13:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555334117; cv=none; d=zoho.com; s=zohoarc; b=X3UCW+23+8sOzFi4MKGAEwgJ2Sn+46fmUNPoayl6L0rlfj/G76UiXTBp/9/U0pbS9oOg6xaM34GgR0xJs1ah29Mk4EGQAHwBCMhkk0DqSqltMdaBVpuJncaJ90nTEiIv2NzONTVlBb6XdAq9lT2WN3V9j9R9O1zy5yDgUAB+BDg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555334117; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=f3I0erKa5ELrocjZxqoghkHkxcYUuDgCT0/xRxooHSs=; b=OktBDp33psvgixSMdqTCbdQu6akMoTs6LIpo11koQl6gtdA3CX6ljw6pEgjy/b1fcjd8S46lMsunApSYUoFFQSdWhxKlyJy2jRvrFyJQNsVCG5FUadEQMi8jY4H95C3Aybo/4pAF3PSLLRlgXhmGX6A8UHVoyOsK3z44gUh3hmg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555334117061848.1569384589496; Mon, 15 Apr 2019 06:15:17 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 738EAC05001A; Mon, 15 Apr 2019 13:15:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 417431091ED2; Mon, 15 Apr 2019 13:15:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id ED4143FA49; Mon, 15 Apr 2019 13:15:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3FDEep8003691 for ; Mon, 15 Apr 2019 09:14:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id B86125D71D; Mon, 15 Apr 2019 13:14:40 +0000 (UTC) Received: from caroline (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8CE8E5D72E for ; Mon, 15 Apr 2019 13:14:37 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline (Postfix) with ESMTP id BE096120703 for ; Mon, 15 Apr 2019 15:14:32 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 15 Apr 2019 15:14:26 +0200 Message-Id: <67ed6290847162839329ea71a463723205fd82de.1555334034.git.mkletzan@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 5/6] qemu: Add support for emulatorsched X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 15 Apr 2019 13:15:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" This helps in a scenarios where vCPUs run with a priority that is so high t= hey might starve the emulator thread. And it also fits with the rest of the settings. Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index f773aa89b78d..55f4074ea146 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -2683,7 +2683,7 @@ qemuProcessSetupEmulator(virDomainObjPtr vm) 0, vm->def->cputune.emulatorpin, vm->def->cputune.emulator_period, vm->def->cputune.emulator_quota, - NULL); + vm->def->cputune.emulatorsched); } =20 =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Thu Apr 25 11:13:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555334106; cv=none; d=zoho.com; s=zohoarc; b=aLxAQn/IaASMBb7L7TfmOiHUGhT8YqxZ+Q3BToVMOBoXpxB9eDZBqmxLVggeEmx/7Lz7JiNl+BCBI+Zane1M6yhIh0ZR2+G77+6dolaLWVHwk7nnZ+Pa632C71iL2LlRZgUhNxOxpsnjLbAkuErEOLntavNW8tPn9pXaB+INFj8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555334106; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=GlpKc8HaIeT2+2iGyzZbVmGeAjJVPvA1qgj6DLdJDpk=; b=U+O/slfsjH03e+poPTHhSAj7dGhuuvfpT6OB7hUhogT0JMzxaAvwxeM/b8+Rz5HyrITbodyJM8aM3SaissTTb2T6Ytsg5OLrY2orR3r/H4FehBPgoaTtPbGAgFDeoGqsL+5PVcY0/gn7ZgY6tZA3uO28TJ1nY+xGVeWpbazFoIc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555334106566592.9756905902777; Mon, 15 Apr 2019 06:15:06 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B1F248046F; Mon, 15 Apr 2019 13:15:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 66C0060148; Mon, 15 Apr 2019 13:15:04 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E50CC3FAF7; Mon, 15 Apr 2019 13:15:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3FDEePW003681 for ; Mon, 15 Apr 2019 09:14:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5BC155C226; Mon, 15 Apr 2019 13:14:40 +0000 (UTC) Received: from caroline (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 305BA5C220 for ; Mon, 15 Apr 2019 13:14:37 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline (Postfix) with ESMTP id D06B612070F for ; Mon, 15 Apr 2019 15:14:32 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Mon, 15 Apr 2019 15:14:27 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 6/6] docs: Add emulatorsched support to news.xml X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 15 Apr 2019 13:15:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander Reviewed-by: J=C3=A1n Tomko --- docs/news.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 86c77346940a..84de507b0e9a 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -35,6 +35,18 @@
+ + + qemu: Add support for setting the emulator scheduler parameters + + + I/O threads and vCPU threads already support setting schedulers,= but + until now it was impossible to do so for the main QEMU thread + (emulator thread in the libvirt naming). This is, however, requ= ested + for some very specific scenarios, for example when vCPU threads = are + running at such priority that could starve the main thread. + +
--=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list