From nobody Fri Apr 26 09:55:45 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; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=oracle.com ARC-Seal: i=1; a=rsa-sha256; t=1565364006; cv=none; d=zoho.com; s=zohoarc; b=niz+7+QwK2rJwPrm0kMH2xRZDaqEvfbroFWTWw2PXtuAx7P2uLZNvnuzUJh4ei8NpN0VIre+RJ2p9tQ+XFYLsQyJU/Ehe/MfdVv9B7RmASNgsnEfUmXf23uGpxFxQq6g+dMgikBX3EgNOoXIWubbKS+lYSIQJvgs8I4HSJFwoN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565364006; 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=EgKtALRsa7nbdN8XwUVVN/oyC8AaIjglu3m7Fgnf12s=; b=fpiUhmzuvFUHc/rUBQSWnISvEHSMF2kUMa+ElY0kQ2pWt/lhR6QAcHtebrEcS3dWREYG5PPbXboOANo0Iu5V6ndo3wj4C2I6iOB1IKW4Ann37pcrxNwYi8v3InH7vx4T8VedqoTihI1nWAS3H7Adso8ZK/tEdo3qRbnlpQEOYVA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail 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 1565364006748419.33293974515936; Fri, 9 Aug 2019 08:20: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 19444C08EC3D; Fri, 9 Aug 2019 15:20:02 +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 7243C600CD; Fri, 9 Aug 2019 15:19:59 +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 522E72551E; Fri, 9 Aug 2019 15:19:56 +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 x79FJsQu006714 for ; Fri, 9 Aug 2019 11:19:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id B83A910016EA; Fri, 9 Aug 2019 15:19:54 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B2AB710016E8 for ; Fri, 9 Aug 2019 15:19:51 +0000 (UTC) Received: from userp2130.oracle.com (userp2130.oracle.com [156.151.31.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BF9647652E for ; Fri, 9 Aug 2019 15:19:41 +0000 (UTC) Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79FAjR6115846 for ; Fri, 9 Aug 2019 15:19:41 GMT Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2u8hps83tq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 09 Aug 2019 15:19:41 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79FFLtF020864 for ; Fri, 9 Aug 2019 15:19:40 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 2u8x9fkswy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 09 Aug 2019 15:19:40 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x79FJd92023286 for ; Fri, 9 Aug 2019 15:19:39 GMT Received: from maximegalon.us.oracle.com (/10.175.16.80) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 09 Aug 2019 08:19:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2019-08-05; bh=RBnrnpPExUPeU/qcYqvy2nK/7dPx8VUzxIT7AJVyZhY=; b=WYEvjFE9nPnhp+kh7V6c5LyJ/gUc4jjxVK6do9VKRLcQfL0+/HwdA/XXn7wnyv6ncInL +WnjO8oUXIMD1OWf0209gSVNsHM9NbqD6z7gnp6OHAj7feIgrdzcje04UHkTXgToQBjC unAxSp+6b8Vk1vjFmlx7v4V+0YvtK5yNlps9MjbEdnrsRHYjDvGh7lHun1UKBulvMODf TLh6i4xxrZmsSM8gujBYaT4p8jpYeSHC/ICIyBrxz0DksihN05wxP7vPdmn+vM+ls5WG 1X2JmrCBhdB9BNkuPPKOEsTEyFO/2Di08OKKs+N+vBrFdXk+ZIu941btHFF+92JWnUIj gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2018-07-02; bh=RBnrnpPExUPeU/qcYqvy2nK/7dPx8VUzxIT7AJVyZhY=; b=UMb6Wr0BBoDisHH0LjPvFYHL818KTJ2XgWUsupi+LOjbQuhPI0nf66Cuqg54Blri9/e0 Nc/sklTsOPSFgE+/eisFk8isINo5zWulO4WiiUlcaTr3D3VCotj6jznwgTa22/Ib6rVR NYUshEtLKN/5Ox9yHCQaY7GOcnAEhjEFgwqYAQkkxx5AFqyTykjOX7oievONztt3pw6p xvheSqF5XRvNmUk/yx+3m/CbfkdkhObcKoBZLInJQO/6q1B57bDvfoowyqsJ6ne99q0u E2C9G0R/ZVDzCFAk+fbxRjVRlzwjUBkg55SjRM/sri0tmtWdJvNs2aZZwQtPflCKBcBs QQ== From: Menno Lageman To: libvir-list@redhat.com Date: Fri, 9 Aug 2019 17:19:16 +0200 Message-Id: <20190809151917.32465-2-menno.lageman@oracle.com> In-Reply-To: <20190809151917.32465-1-menno.lageman@oracle.com> References: <20190809151917.32465-1-menno.lageman@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=15 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090153 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=15 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090153 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 238 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 09 Aug 2019 15:19:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 09 Aug 2019 15:19:47 +0000 (UTC) for IP:'156.151.31.86' DOMAIN:'userp2130.oracle.com' HELO:'userp2130.oracle.com' FROM:'menno.lageman@oracle.com' RCPT:'' X-RedHat-Spam-Score: -102.4 (DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_MED, SPF_HELO_PASS, SPF_NONE, UNPARSEABLE_RELAY, USER_IN_WHITELIST) 156.151.31.86 userp2130.oracle.com 156.151.31.86 userp2130.oracle.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/2] qemu: support for kvm-hint-dedicated performance hint 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.31]); Fri, 09 Aug 2019 15:20:03 +0000 (UTC) X-ZohoMail-DKIM: fail (found 2 invalid signatures) Content-Type: text/plain; charset="utf-8" From: Wim ten Have QEMU version 2.12.1 introduced a performance feature under commit be7773268d98 ("target-i386: add KVM_HINTS_DEDICATED performance hint") This patch adds a new KVM feature 'hint-dedicated' to set this performance hint for KVM guests. The feature is off by default. To enable this hint and have libvirt add "-cpu host,kvm-hint-dedicated=3Don" to the QEMU command line, the following XML code needs to be added to the guest's domain description in conjunction with CPU mode=3D'host-passthrough= '. ... Signed-off-by: Wim ten Have Signed-off-by: Menno Lageman --- docs/formatdomain.html.in | 7 +++++++ docs/schemas/domaincommon.rng | 5 +++++ src/conf/domain_conf.c | 4 ++++ src/conf/domain_conf.h | 1 + src/qemu/qemu_command.c | 13 +++++++++++++ 5 files changed, 30 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 6d084d7c0472..c9b18b57e1fc 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -2044,6 +2044,7 @@ </hyperv> <kvm> <hidden state=3D'on'/> + <hint-dedicated state=3D'on'/> </kvm> <pvspinlock state=3D'on'/> <gic version=3D'2'/> @@ -2217,6 +2218,12 @@ on, off 1.2.8 (QEMU 2.1.0) + + hint-dedicated + Set the "dedicated physical CPU" performance hint ("-cpu kvm= -hint-dedicated=3Don") + on, off + 5.7.0 (QEMU 2.12.1) +
pmu
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index a0771da45b5d..08853f9d9e92 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -5965,6 +5965,11 @@ + + + + + diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 03312afaaff8..3907fcf6e5ca 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -202,6 +202,7 @@ VIR_ENUM_IMPL(virDomainHyperv, VIR_ENUM_IMPL(virDomainKVM, VIR_DOMAIN_KVM_LAST, "hidden", + "hint-dedicated", ); =20 VIR_ENUM_IMPL(virDomainMsrsUnknown, @@ -20412,6 +20413,7 @@ virDomainDefParseXML(xmlDocPtr xml, =20 switch ((virDomainKVM) feature) { case VIR_DOMAIN_KVM_HIDDEN: + case VIR_DOMAIN_KVM_DEDICATED: if (!(tmp =3D virXMLPropString(nodes[i], "state"))) { virReportError(VIR_ERR_XML_ERROR, _("missing 'state' attribute for " @@ -22624,6 +22626,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDefP= tr src, for (i =3D 0; i < VIR_DOMAIN_KVM_LAST; i++) { switch ((virDomainKVM) i) { case VIR_DOMAIN_KVM_HIDDEN: + case VIR_DOMAIN_KVM_DEDICATED: if (src->kvm_features[i] !=3D dst->kvm_features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("State of KVM feature '%s' differs: " @@ -28124,6 +28127,7 @@ virDomainDefFormatFeatures(virBufferPtr buf, for (j =3D 0; j < VIR_DOMAIN_KVM_LAST; j++) { switch ((virDomainKVM) j) { case VIR_DOMAIN_KVM_HIDDEN: + case VIR_DOMAIN_KVM_DEDICATED: if (def->kvm_features[j]) virBufferAsprintf(&childBuf, "<%s state=3D'%s'/>\n= ", virDomainKVMTypeToString(j), diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index bce47443c858..f7423b1b6f89 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1765,6 +1765,7 @@ typedef enum { =20 typedef enum { VIR_DOMAIN_KVM_HIDDEN =3D 0, + VIR_DOMAIN_KVM_DEDICATED, =20 VIR_DOMAIN_KVM_LAST } virDomainKVM; diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 71a36ff63a81..ab535af5efb6 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7212,6 +7212,19 @@ qemuBuildCpuCommandLine(virCommandPtr cmd, virBufferAddLit(&buf, ",kvm=3Doff"); break; =20 + case VIR_DOMAIN_KVM_DEDICATED: + if (def->kvm_features[i] =3D=3D VIR_TRISTATE_SWITCH_ON) { + if (def->cpu && def->cpu->mode =3D=3D VIR_CPU_MODE_HOS= T_PASSTHROUGH) { + virBufferAddLit(&buf, ",kvm-hint-dedicated=3Don"); + } else { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("kvm-hint-dedicated=3Don is only applica= ble when " + " = is in effect")); + goto cleanup; + } + } + break; + /* coverity[dead_error_begin] */ case VIR_DOMAIN_KVM_LAST: break; --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri Apr 26 09:55:45 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; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=oracle.com ARC-Seal: i=1; a=rsa-sha256; t=1565364016; cv=none; d=zoho.com; s=zohoarc; b=njvrmlm7fxFrnIra+hWf+O96t83maCB6zwPspXt1Rk+x8W0KlWPo0/CPdza7dPk9kV6PS7hxAY8mh32LDUuHhvaZforHllCqo3U8I/dh8lb4YDnCSY/1++LUqy4Vxn+fKOdsR2iV2JAte6+UWcznAOiW7xDxJfUa8NEUJPVrhrQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565364016; 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=RgdtZDJ1yP2OungfV3cTeRjOHhGYMFg9vOR+ihAUfD8=; b=QQkGVE0E7W7IHnefIJpH9RqrW1K854Zl5LZMwqXhOs5mlFIzVcMbwPVk3BD6M40XPUIxYRzgMXmur8B2CxJheg54UgtFq6uIQJNZ0vTd+zPCOBQFLzmIL7V97nLaKO6nCjnue1s5CoBUMQZvTkJUKxQCHYox6KuJtfVKT0oVe30= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail 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 1565364016747668.8126421904844; Fri, 9 Aug 2019 08:20:16 -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 52A5C30FB8DE; Fri, 9 Aug 2019 15:20:15 +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 1FB2919C70; Fri, 9 Aug 2019 15:20: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 C4ECE180B536; Fri, 9 Aug 2019 15:20:14 +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 x79FKDej006749 for ; Fri, 9 Aug 2019 11:20:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5106D69733; Fri, 9 Aug 2019 15:20:13 +0000 (UTC) Received: from mx1.redhat.com (ext-mx17.extmail.prod.ext.phx2.redhat.com [10.5.110.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3DEA76950C for ; Fri, 9 Aug 2019 15:19:44 +0000 (UTC) Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1FC4430CADED for ; Fri, 9 Aug 2019 15:19:41 +0000 (UTC) Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79FAh0U137775 for ; Fri, 9 Aug 2019 15:19:40 GMT Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2u8hasg8km-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 09 Aug 2019 15:19:40 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79FFJsG020724 for ; Fri, 9 Aug 2019 15:19:40 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2u8x9fksx4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 09 Aug 2019 15:19:40 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x79FJdbL016719 for ; Fri, 9 Aug 2019 15:19:39 GMT Received: from maximegalon.us.oracle.com (/10.175.16.80) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 09 Aug 2019 08:19:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2019-08-05; bh=lrJ9fRwuxl3Kb3KQjg8uvu0KeicsBAyIjRpZQo923Ow=; b=F7j27CNHE4edNlF8fI+TyjBmxI7WfuC91NLAdVkiokvYchHgDoL1myMqmEacgB5QVym3 P7ey6wOkAg46IEQEW0Dd2L5f08bEhkdQFO5PU0gW5vcOWsuCiR6YLTKqif8rbNWBVM9z jui+9CWPdNjNEM766Ci00bddlKmQiQzy7ESK1scPZ7ssAu4JrgNUSHZIDfvEZ1qWsCJP nMcikgD5xrxYsEgpgJJi74BWtLm0k3iLXB4wbEHl//SUHmE1YQL2+GWJq2S4VwYxBhFR g+Dcz6uaH8j/EMhPfp6HNQSJLSV8uKhDkzRqJUA4ln1xvePNvdOuizJyQ+itGH9bJNMb dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=corp-2018-07-02; bh=lrJ9fRwuxl3Kb3KQjg8uvu0KeicsBAyIjRpZQo923Ow=; b=ndf/gLK6SuTEScuki3UY/9UjQz0lqUgbmvCKAGFD6oIDsRmg9UDsZzk1Wwvxs9hqFwLq HoVdC6t8j0ktLjgMFaYBTkm+Nk6lWAuZrthS0OP/HD+U9oc4xe4l3m0LMc6VqpGcdlan zdiQ2eIlC5SjIvKifksXNY0Vj330BO8bBTdYqc2t1xKXw0YQwvvDMIFv0+SEBgzE9PU+ R4gnw5RSHHoZK48/c35jN91MqBmpt4wuGOXFqFTQ5u23moMljVze4eMGwB6N3lbqj+jY 0sw5mtY/hJChst8DvDOxp2o6I0O60vZqcGbizpv6K84xrtJa+oMObzIENr/l2CeLfbEw cA== From: Menno Lageman To: libvir-list@redhat.com Date: Fri, 9 Aug 2019 17:19:17 +0200 Message-Id: <20190809151917.32465-3-menno.lageman@oracle.com> In-Reply-To: <20190809151917.32465-1-menno.lageman@oracle.com> References: <20190809151917.32465-1-menno.lageman@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090153 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090153 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 238 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 09 Aug 2019 15:19:41 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 09 Aug 2019 15:19:41 +0000 (UTC) for IP:'141.146.126.78' DOMAIN:'aserp2120.oracle.com' HELO:'aserp2120.oracle.com' FROM:'menno.lageman@oracle.com' RCPT:'' X-RedHat-Spam-Score: -102.4 (DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_MED, SPF_HELO_PASS, SPF_NONE, UNPARSEABLE_RELAY, USER_IN_WHITELIST) 141.146.126.78 aserp2120.oracle.com 141.146.126.78 aserp2120.oracle.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.46 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/2] tests: add tests for kvm-hint-dedicated feature 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.47]); Fri, 09 Aug 2019 15:20:15 +0000 (UTC) X-ZohoMail-DKIM: fail (found 2 invalid signatures) Content-Type: text/plain; charset="utf-8" From: Wim ten Have Update the KVM feature tests for QEMU's kvm-hint-dedicated performance hint. Signed-off-by: Wim ten Have Signed-off-by: Menno Lageman Reviewed-by: Michal Privoznik --- tests/qemuxml2argvdata/kvm-features-off.xml | 1 + tests/qemuxml2argvdata/kvm-features.args | 4 ++-- tests/qemuxml2argvdata/kvm-features.xml | 4 +++- tests/qemuxml2xmloutdata/kvm-features-off.xml | 1 + tests/qemuxml2xmloutdata/kvm-features.xml | 4 +++- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/qemuxml2argvdata/kvm-features-off.xml b/tests/qemuxml2ar= gvdata/kvm-features-off.xml index e893f9343754..ab2c16202c3d 100644 --- a/tests/qemuxml2argvdata/kvm-features-off.xml +++ b/tests/qemuxml2argvdata/kvm-features-off.xml @@ -12,6 +12,7 @@ + diff --git a/tests/qemuxml2argvdata/kvm-features.args b/tests/qemuxml2argvd= ata/kvm-features.args index 55d2b8be02ea..8372ca897d8d 100644 --- a/tests/qemuxml2argvdata/kvm-features.args +++ b/tests/qemuxml2argvdata/kvm-features.args @@ -10,8 +10,8 @@ QEMU_AUDIO_DRV=3Dnone \ /usr/bin/qemu-system-i686 \ -name QEMUGuest1 \ -S \ --machine pc,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff \ --cpu qemu32,kvm=3Doff \ +-machine pc,accel=3Dkvm,usb=3Doff,dump-guest-core=3Doff \ +-cpu host,kvm=3Doff,kvm-hint-dedicated=3Don \ -m 214 \ -realtime mlock=3Doff \ -smp 6,sockets=3D6,cores=3D1,threads=3D1 \ diff --git a/tests/qemuxml2argvdata/kvm-features.xml b/tests/qemuxml2argvda= ta/kvm-features.xml index 68bdee42bacf..b942e89a9280 100644 --- a/tests/qemuxml2argvdata/kvm-features.xml +++ b/tests/qemuxml2argvdata/kvm-features.xml @@ -1,4 +1,4 @@ - + QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 219100 @@ -12,8 +12,10 @@ + + destroy restart diff --git a/tests/qemuxml2xmloutdata/kvm-features-off.xml b/tests/qemuxml2= xmloutdata/kvm-features-off.xml index b355061c5b01..a0ef9c7e9e15 100644 --- a/tests/qemuxml2xmloutdata/kvm-features-off.xml +++ b/tests/qemuxml2xmloutdata/kvm-features-off.xml @@ -12,6 +12,7 @@ + diff --git a/tests/qemuxml2xmloutdata/kvm-features.xml b/tests/qemuxml2xmlo= utdata/kvm-features.xml index 544b9d860755..b6f16ced1dab 100644 --- a/tests/qemuxml2xmloutdata/kvm-features.xml +++ b/tests/qemuxml2xmloutdata/kvm-features.xml @@ -1,4 +1,4 @@ - + QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 219100 @@ -12,8 +12,10 @@ + + destroy restart --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list