From nobody Tue Apr 16 12:29:26 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=1565613061; cv=none; d=zoho.com; s=zohoarc; b=QiXhwrHXe8MMkDSXqYFk8JDFi20cwP+c9QmShNstKfjllziDoSXMCW0Iw1O7j7rH7yZcEzfsJ6FTL9rEZI+vBJ+ptg/gGhBqe95Egh3rbRF8LlYKd21Eje3S5EvDI8kpBZVmxbmqxvmpd9oW2Vuy+dGoYpaeuSlMOgRtKCibLdc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565613061; 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=0ec8fojLo9aXxIgkWt0FTmYrhCeT9WtkCqGVfSRa0A4=; b=JJ8LVLmwciiD5h3CuI33Nv9rg8KgutFtsjDBL7YdOe01Pb9PFII6kbzipFSv4I8gybeLIMBdDtW1YStoA0DH1frES5gj1CFh22Sah0WgJt3XByUNzgVL/I6Sx6Brt69vCUpqQbYoW3RelSxOAhesv5zWaWGbN9xcTuwEqbnC4Qk= 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 1565613061095132.24044174939934; Mon, 12 Aug 2019 05:31:01 -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 CA2ED30622EC; Mon, 12 Aug 2019 12:30:59 +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 645411000182; Mon, 12 Aug 2019 12:30: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 2C2D5180BA96; Mon, 12 Aug 2019 12:30:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7CCUvuS018902 for ; Mon, 12 Aug 2019 08:30:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id A7AAA1D1; Mon, 12 Aug 2019 12:30:57 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A243218E35 for ; Mon, 12 Aug 2019 12:30:54 +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 4B5F26E78C for ; Mon, 12 Aug 2019 12:30:40 +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 x7CCTMQf121136 for ; Mon, 12 Aug 2019 12:30:39 GMT Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2u9nbt7cu5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 12 Aug 2019 12:30:39 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7CCT59P141038 for ; Mon, 12 Aug 2019 12:30:39 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2u9k1v4kad-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 12 Aug 2019 12:30:39 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x7CCUcFF009615 for ; Mon, 12 Aug 2019 12:30:38 GMT Received: from maximegalon.us.oracle.com (/10.175.33.234) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Aug 2019 05:30:37 -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=pqfLksrlLAAQNEdS2MLbJSPaYqjOqrbWiVFnODujGHo=; b=Z2nintiOlJD0xDsN32615QMqkVpmGV6+BTUpxeqtsEQHN/3H08h+evhY72oJtvXE7SOi qPm1M4wIsIDIHe34yz/+9JMJhnrbs0jvi33hMmXk/kABbx86YdpCAotU0YnLjoSvAq+o M28UvbBXM3hbqo651/Xgvf6jBSxP33i6Ds4RFw8PdHCOR4beOMFYvQAtFekpQqLCVqAJ 6qqjQAkVeVbtH8j4wgpApDNybkLEbkoePetE927nJFs1kz3VU9y/X6hfFsXGcZ58aw6V RGTbIMhxqBvE5PxmLuHNXU3p6mp5fjZ13pnU+b0wBwXR1VWSwmdik+5uyAG2miTtMf5l tw== 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=pqfLksrlLAAQNEdS2MLbJSPaYqjOqrbWiVFnODujGHo=; b=XsK0aoxvN7awh6/AuwfwlU8XdJmLSR2fntRj15OV5NUQNGionbVqNBYA5iVjc9loecSi JMOnCsF9dHPt35V7sRECse++PqdkV48kZFp0reQMLjApRrKCi1Py5/oy7oECopUJ6cOI s1/q8KFXcwM3V9oaJMXGmsRle5aeDy5Huv7eBSN4syHNq4dHQzyN9AW+8q9YbflyHPW4 0fXCCuYl9GNh4AAXN0cRrhb/cRDxv9xaHSp6B3d+M3CJzq2iMvf5FmhxN4hOEgmAUzXp uRMG4d5jUdYBQXHB94iQPV2BMdrvgnRVtfB4x3QbJ27wI7DMwCgHFDpho/NMg8ky2BxF UA== From: Menno Lageman To: libvir-list@redhat.com Date: Mon, 12 Aug 2019 14:30:29 +0200 Message-Id: <20190812123030.15381-2-menno.lageman@oracle.com> In-Reply-To: <20190812123030.15381-1-menno.lageman@oracle.com> References: <20190812123030.15381-1-menno.lageman@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9346 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-1908120141 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9346 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-1908120141 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.25]); Mon, 12 Aug 2019 12:30:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 12 Aug 2019 12:30:50 +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.83 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 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.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.44]); Mon, 12 Aug 2019 12:31:00 +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 | 5 +++++ src/qemu/qemu_domain.c | 11 ++++++++++- 6 files changed, 32 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 6d084d7c0472..a18119f9a08e 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 + Allows a guest to enable optimizations when running on dedic= ated vCPUs + 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..f096e8f27e58 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7212,6 +7212,11 @@ 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) + virBufferAddLit(&buf, ",kvm-hint-dedicated=3Don"); + break; + /* coverity[dead_error_begin] */ case VIR_DOMAIN_KVM_LAST: break; diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 937b461a8b55..b9c5a4e54108 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4449,6 +4449,16 @@ qemuDomainDefValidateFeatures(const virDomainDef *de= f, } break; =20 + case VIR_DOMAIN_FEATURE_KVM: + if (def->kvm_features[VIR_DOMAIN_KVM_DEDICATED] =3D=3D VIR_TRI= STATE_SWITCH_ON && + (!def->cpu || def->cpu->mode !=3D VIR_CPU_MODE_HOST_PASSTH= ROUGH)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("kvm-hint-dedicated=3Don is only applicab= le " + "for cpu host-passthrough")); + return -1; + } + break; + case VIR_DOMAIN_FEATURE_ACPI: case VIR_DOMAIN_FEATURE_APIC: case VIR_DOMAIN_FEATURE_PAE: @@ -4456,7 +4466,6 @@ qemuDomainDefValidateFeatures(const virDomainDef *def, case VIR_DOMAIN_FEATURE_VIRIDIAN: case VIR_DOMAIN_FEATURE_PRIVNET: case VIR_DOMAIN_FEATURE_HYPERV: - case VIR_DOMAIN_FEATURE_KVM: case VIR_DOMAIN_FEATURE_PVSPINLOCK: case VIR_DOMAIN_FEATURE_CAPABILITIES: case VIR_DOMAIN_FEATURE_PMU: --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Tue Apr 16 12:29:26 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=1565613173; cv=none; d=zoho.com; s=zohoarc; b=IqKdLtnbvagIefaRJKgogb9liATYzdKtuWiiwoYWzwb3AKedgMdDpzWaw2zIugNHkR6j5MTOKyHHNmFp3gG0gEqbDwqktaU777KL0RUJJWe+TJC1MFNL3pqMv13dT96aSGQrHVA55yEoNmQiGEy+q6POSUcfeWFG+UPUV6Qi7Tw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565613173; 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=nnwwkZ768pp431TCIHj44yW4ihebzCjtRAek4IdBFCPcI3tiHxbgdj9Wqz5dwIF3ywsRdMWTg31JjxgabhDhC2dBlPFeeumIKDWf3cqEesR84K22qPGR7s80k6yVoz4FE6lult8mOET4V8Z6Xo8jSGU4g+wRt3qbiV2M7Pz5AyA= 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 15656131731161018.5972892568341; Mon, 12 Aug 2019 05:32:53 -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 0A09F19CFF5; Mon, 12 Aug 2019 12:32:52 +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 D82A627C4D; Mon, 12 Aug 2019 12:32:51 +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 9790E180B536; Mon, 12 Aug 2019 12:32:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7CCWnms019072 for ; Mon, 12 Aug 2019 08:32:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id D83A018E40; Mon, 12 Aug 2019 12:32:49 +0000 (UTC) Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D273118E39 for ; Mon, 12 Aug 2019 12:32:46 +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 22DC230615BF for ; Mon, 12 Aug 2019 12:32:42 +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 x7CCTWMe121193 for ; Mon, 12 Aug 2019 12:32:41 GMT Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2u9nbt7d57-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 12 Aug 2019 12:32: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 x7CCT841108452 for ; Mon, 12 Aug 2019 12:30:40 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 2u9nrdu4sd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 12 Aug 2019 12:30:40 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x7CCUdtk005211 for ; Mon, 12 Aug 2019 12:30:39 GMT Received: from maximegalon.us.oracle.com (/10.175.33.234) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Aug 2019 05:30: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=lrJ9fRwuxl3Kb3KQjg8uvu0KeicsBAyIjRpZQo923Ow=; b=lSlaJiIdiHfPf8AzHiYBKPOh1lGXOfayT2YzWytyjZ//N7EM6CNnwvmufIskbrnuCXfA +mDgyaZfDQUaSoCbHc6DymcgfYmkoNKMfm+eHlqOLZN+7H05wIxU8v7CO/Sv15hjiKGT 3sA9fwugIx70H4nPJq+p0Q8Sm74PlxgTSkSiCIAio6xqL81VCUlPBPn3ZMGH8xn7Ggoc cMFhApkPBkvl3ccGFg3g01Xxhb6MmFwEK3XSnnPz/UZNumFR+3bEZlzhwXjpxy6WqE8W MWZTGiUL/5lW8xN9aN0J9SRzN/RGT1JO6Vp7hRe7EshK7w/lNTGQ68Cx3eX5j4Vba+wb JA== 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=wsxAmliO4XQtl/GML9SMnXoOJlqIlxU9acaz6VYPBrooDmSJ1R4/6S5N7pA22kGzpIt3 ficiQSUA6ERtC9IpHP7ts0a0w9wzGVhA5/8nBp+jek0o/Vi2OE2Jib78qV5OZ6IqIhFO fFKIkGwApFowpZETi/wawM9jekX7+X5Fg/IhQC4eYHXK7+JokC35fU4r3gsNbY+vsaFC oqdZh6ntkyVcaENMi2jcSA/aiCn1ZJXidgNOfpEbJAdWHzjgjNSD58CVytZQqO5wLSTI qNaUCprQt+U1vBkHbUW6ZgOI8ECLiNOMLxhI9shPZg69dFJgyxpLQpDcRFhdCAYlgmKo Xw== From: Menno Lageman To: libvir-list@redhat.com Date: Mon, 12 Aug 2019 14:30:30 +0200 Message-Id: <20190812123030.15381-3-menno.lageman@oracle.com> In-Reply-To: <20190812123030.15381-1-menno.lageman@oracle.com> References: <20190812123030.15381-1-menno.lageman@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9346 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-1908120141 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9346 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-1908120141 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.42]); Mon, 12 Aug 2019 12:32:42 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Mon, 12 Aug 2019 12:32:42 +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.84 on 10.5.110.42 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 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.29]); Mon, 12 Aug 2019 12:32:52 +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 --- 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