From nobody Sat May 18 08:14:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1688366448; cv=none; d=zohomail.com; s=zohoarc; b=FLmsPje6LerwtEK897tZQ68X1xKnbQDnauBqbDHWwdyjaxktpAVcpgAQiZrtp9/xjU0k+5ghRElldttV022rfo9abQECjI4AxfasyRPLEDQTvXxyFWQEfG8adzagiRlJiIcJ+UGFcSY3z1+0hvXVH728v9FOHk9tThVtk5z1Le0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688366448; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=D0C3fad5BudvFFG71HMBRN7zp6yEh+rgUgQjJmbozw4=; b=Md3Y2pVSyiLE+9ZlIwpsYonWREGNusxcLrfjANBMjszlprQNGXVL8K6bkhxpCm/eFQ8bCxt7FKIR3rqCFXCJngwWUTu/TB8PN49qNI+JW1TvGx+nHHipvtZZbShmTCmTtoGeQHhHubaqFxbWGtFQHxlgL2fMVhR6fapV7ZWWz7I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1688366448148378.61378008079; Sun, 2 Jul 2023 23:40:48 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-221-1RIc02_PNjO_bwCBhHNvsg-1; Mon, 03 Jul 2023 02:40:40 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 82841858290; Mon, 3 Jul 2023 06:40:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2CFDC4087C6A; Mon, 3 Jul 2023 06:40:36 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D22441946597; Mon, 3 Jul 2023 06:40:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id F1BCE1946597 for ; Mon, 3 Jul 2023 06:40:33 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id C8A894087C6B; Mon, 3 Jul 2023 06:40:33 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C18CF4087C6A for ; Mon, 3 Jul 2023 06:40:33 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A154B1C07244 for ; Mon, 3 Jul 2023 06:40:33 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-85-9SOQiZEtPrCYa7061Uz4Yw-1; Mon, 03 Jul 2023 02:40:30 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 4E7F7218A2; Mon, 3 Jul 2023 06:30:37 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6EC72138FC; Mon, 3 Jul 2023 06:30:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oIEEEQxromShOAAAMHmgww (envelope-from ); Mon, 03 Jul 2023 06:30:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688366446; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=D0C3fad5BudvFFG71HMBRN7zp6yEh+rgUgQjJmbozw4=; b=EnWdTQnGq+80/yCk8X7/7UE/80brHaYlfgRum4UGhzuzHeieIFIf/E77PlJAnSPS7CsR+F Oi99ga1Uh60aIEWcf+XtOamtQ7+qSmTPFhn5UPtCai+r1OInLlzWVjI/7JwHH3Zcb2LUh1 aMUR3Plu5qot4uzyiXqDDKNTwCl6uCE= X-MC-Unique: 1RIc02_PNjO_bwCBhHNvsg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: 9SOQiZEtPrCYa7061Uz4Yw-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH RESEND 1/4] conf: Introduce notify VM exit feature Date: Mon, 3 Jul 2023 14:30:28 +0800 Message-ID: <20230703063031.27687-2-lma@suse.de> In-Reply-To: <20230703063031.27687-1-lma@suse.de> References: <20230703063031.27687-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mprivozn@redhat.com, Lin Ma Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.de Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1688366450385100003 Content-Type: text/plain; charset="utf-8"; x-default="true" VMX(kernel v6.0) supports Notification VM exit feature under commit 2f4073e= 0. QEMU supports it as well since v7.2 under commit e2e69f6b. Add this feature into libvirt now. An example of Domain XML snippet to configure this feature: Signed-off-by: Lin Ma --- docs/formatdomain.rst | 4 +++ src/conf/domain_conf.c | 32 +++++++++++++++++++++ src/conf/domain_conf.h | 7 +++++ src/conf/schemas/domaincommon.rng | 17 +++++++++++ src/qemu/qemu_command.c | 3 ++ tests/qemuxml2argvdata/kvm-features-off.xml | 1 + tests/qemuxml2argvdata/kvm-features.xml | 1 + 7 files changed, 65 insertions(+) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index f29449f749..452ee17367 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -1976,6 +1976,7 @@ Hypervisors may allow certain CPU / machine features = to be toggled on/off. + @@ -2088,6 +2089,9 @@ are: poll-control Decrease IO completion latency by introducing a grace pe= riod of busy waiting on, off = :since:`6.10.0 (QEMU 4.2)` pv-ipi Paravirtualized send IPIs = on, off = :since:`7.10.0 (QEMU 3.1)` dirty-ring Enable dirty ring feature = on, off; size - must be power of 2, range [1024,65536]= :since:`8.0.0 (QEMU 6.1)` + notify-vmexit Enable notification VM exit(x86 only) with attribute mod= e(accepted values on, off = :since:`9.5.0 (QEMU 7.2)` + are 'run', 'internal-error' and 'disable') and optional = attribute + notify-window (accepted numbered starting from 0) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D =20 ``xen`` diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 4121b6a054..c00d50d43d 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -216,6 +216,7 @@ VIR_ENUM_IMPL(virDomainKVM, "poll-control", "pv-ipi", "dirty-ring", + "notify-vmexit", ); =20 VIR_ENUM_IMPL(virDomainXen, @@ -16349,6 +16350,18 @@ virDomainFeaturesKVMDefParse(virDomainDef *def, } } =20 + if (feature =3D=3D VIR_DOMAIN_KVM_NOTIFY_VMEXIT && + value =3D=3D VIR_TRISTATE_SWITCH_ON) { + + if (!(kvm->notify_vmexit.mode =3D virXMLPropStringRequired(nod= e, "mode"))) { + return -1; + } + if (virXMLPropUInt(node, "notify-window", 0, VIR_XML_PROP_NONE, + &kvm->notify_vmexit.notify_window) < 0) { + return -1; + } + } + node =3D xmlNextElementSibling(node); } =20 @@ -20738,6 +20751,7 @@ virDomainDefFeaturesCheckABIStability(virDomainDef = *src, case VIR_DOMAIN_KVM_POLLCONTROL: case VIR_DOMAIN_KVM_PVIPI: case VIR_DOMAIN_KVM_DIRTY_RING: + case VIR_DOMAIN_KVM_NOTIFY_VMEXIT: if (src->kvm_features->features[i] !=3D dst->kvm_features-= >features[i]) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("State of KVM feature '%1$s' differs:= source: '%2$s', destination: '%3$s'"), @@ -27202,6 +27216,24 @@ virDomainDefFormatFeatures(virBuffer *buf, } break; =20 + case VIR_DOMAIN_KVM_NOTIFY_VMEXIT: + if (def->kvm_features->features[j] !=3D VIR_TRISTATE_S= WITCH_ABSENT) { + virBufferAsprintf(&childBuf, "<%s state=3D'%s'", + virDomainKVMTypeToString(j), + virTristateSwitchTypeToString(de= f->kvm_features->features[j])); + if (def->kvm_features->notify_vmexit.mode !=3D NUL= L) { + virBufferAsprintf(&childBuf, " mode=3D'%s'", + def->kvm_features->notify_vm= exit.mode); + if (def->kvm_features->notify_vmexit.notify_wi= ndow && + STRNEQ(def->kvm_features->notify_vmexit.mo= de, "disable")) { + virBufferAsprintf(&childBuf, " notify-wind= ow=3D'%u'", + def->kvm_features->notif= y_vmexit.notify_window); + } + } + virBufferAddLit(&childBuf, "/>\n"); + } + break; + case VIR_DOMAIN_KVM_LAST: break; } diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index cddaa3824d..5957f66b79 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -2202,6 +2202,7 @@ typedef enum { VIR_DOMAIN_KVM_POLLCONTROL, VIR_DOMAIN_KVM_PVIPI, VIR_DOMAIN_KVM_DIRTY_RING, + VIR_DOMAIN_KVM_NOTIFY_VMEXIT, =20 VIR_DOMAIN_KVM_LAST } virDomainKVM; @@ -2389,6 +2390,12 @@ struct _virDomainFeatureKVM { int features[VIR_DOMAIN_KVM_LAST]; =20 unsigned int dirty_ring_size; /* size of dirty ring for each vCPU, no = units */ + struct { + char *mode; /* option of notify vmexit */ + unsigned int notify_window; /* A specified amount of time to gener= ate + a VM exit if no interrupt windows o= ccur + in VMX non-root operation */ + } notify_vmexit; }; =20 typedef struct _virDomainFeatureTCG virDomainFeatureTCG; diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index fcf9e00600..84ebd2b03c 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -7754,6 +7754,23 @@ + + + + + + + (run|internal-error|disable) + + + + + + + + + + diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index cde6ab4dde..656cf55c1e 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6475,6 +6475,9 @@ qemuBuildCpuCommandLine(virCommand *cmd, case VIR_DOMAIN_KVM_DIRTY_RING: break; =20 + case VIR_DOMAIN_KVM_NOTIFY_VMEXIT: + break; + case VIR_DOMAIN_KVM_LAST: break; } diff --git a/tests/qemuxml2argvdata/kvm-features-off.xml b/tests/qemuxml2ar= gvdata/kvm-features-off.xml index 7ee6525cd9..d51a8324e0 100644 --- a/tests/qemuxml2argvdata/kvm-features-off.xml +++ b/tests/qemuxml2argvdata/kvm-features-off.xml @@ -16,6 +16,7 @@ + diff --git a/tests/qemuxml2argvdata/kvm-features.xml b/tests/qemuxml2argvda= ta/kvm-features.xml index 8ce3a2b987..c2d4ecf4d1 100644 --- a/tests/qemuxml2argvdata/kvm-features.xml +++ b/tests/qemuxml2argvdata/kvm-features.xml @@ -16,6 +16,7 @@ + --=20 2.41.0 From nobody Sat May 18 08:14:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1688366445; cv=none; d=zohomail.com; s=zohoarc; b=Blx6RaFihlO+J4flS8gdxyN5D1d2dWYiIobms6qSJxosQ2zMbKHwikq+xMsXiVALlEvumD2O2hfMQ93epz0G6dtNLjDmQ/t4DisTQG0kgrcr7+9Lg7A8whg1H0taX82+L6yHZ9bCJFiYUEVTck2FiMozIesjmQVtYG6BJoH2Zps= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688366445; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=KvCXAZ6YkJVm4M+uSGZQpYqslr3kQR2nQFeLliNzlKE=; b=VmRStchmfnyJYjc8BLoZDyNkHb5mEVYrD60ODS+fhWe/7OxpmbZ2aCexPpIiOeJ3Evw5o5ZRkfSwm2nSKpNF7v2sev7oS2b2MpY5w52k71DezrN8PB6YAOg/uzWYG9rvqzLJQKqYuw7J0qb2dkVYSQq7dOaeYzEiPJt7rOunNSk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1688366445925575.4561259555499; Sun, 2 Jul 2023 23:40:45 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-281-15riJeMgN2a2lflIGbyNNg-1; Mon, 03 Jul 2023 02:40:41 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 95BDE81DA29; Mon, 3 Jul 2023 06:40:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8048C1121319; Mon, 3 Jul 2023 06:40:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 53B411946A72; Mon, 3 Jul 2023 06:40:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EF79B1946595 for ; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B0CDBF641C; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A97DEF6431 for ; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 89EEA873236 for ; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-85-VJ-j33QIPE2Aro-f8dVpRQ-1; Mon, 03 Jul 2023 02:40:30 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 83875218B0; Mon, 3 Jul 2023 06:30:38 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9D304138FC; Mon, 3 Jul 2023 06:30:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oEcfHA1romShOAAAMHmgww (envelope-from ); Mon, 03 Jul 2023 06:30:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688366444; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=KvCXAZ6YkJVm4M+uSGZQpYqslr3kQR2nQFeLliNzlKE=; b=A9thFPLaqCp9CXq/qg5LdesSgdiMQJsh1kboHGwq0Ea5N69fC8Nw+SYhSLVLkWpyHZ/zjC Dj/yrPtNa/J9PAIVTpUtbv9hhdbwRI6Q8q6Tup6qwBbNbVKw1xNHI+EuqrMv1XpApGt8EU HtgZ5o7N6DRJDY81oVRhGB64wQZLHsU= X-MC-Unique: 15riJeMgN2a2lflIGbyNNg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: VJ-j33QIPE2Aro-f8dVpRQ-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH RESEND 2/4] qemu: Validate notify VM exit feature is available only on x86 Date: Mon, 3 Jul 2023 14:30:29 +0800 Message-ID: <20230703063031.27687-3-lma@suse.de> In-Reply-To: <20230703063031.27687-1-lma@suse.de> References: <20230703063031.27687-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mprivozn@redhat.com, Lin Ma Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.de Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1688366447801100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Lin Ma --- src/qemu/qemu_validate.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index a53729d349..6ec5af0028 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -219,8 +219,18 @@ qemuValidateDomainDefFeatures(const virDomainDef *def, } break; =20 - case VIR_DOMAIN_FEATURE_SMM: case VIR_DOMAIN_FEATURE_KVM: + if (def->kvm_features) { + if (def->kvm_features->features[VIR_DOMAIN_KVM_NOTIFY_VMEX= IT] !=3D VIR_TRISTATE_SWITCH_ABSENT && + !ARCH_IS_X86(def->os.arch)) { + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", + _("Notification VM exit is only support= ed on x86 architecture")); + return -1; + } + } + break; + + case VIR_DOMAIN_FEATURE_SMM: case VIR_DOMAIN_FEATURE_XEN: case VIR_DOMAIN_FEATURE_ACPI: case VIR_DOMAIN_FEATURE_PAE: --=20 2.41.0 From nobody Sat May 18 08:14:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1688366454; cv=none; d=zohomail.com; s=zohoarc; b=BKNBI90MBPalPrzvjTwTd75b8ACH9Usk0LGRvNCiDRr6F0qqkgQnWJ9qr3GnMMkpZduwrYTbjcpI9mMAH1KcwSyLxo6yiXh9uXfAAhEbJnMhb6rLT/i7L4xC2CbIP+iTUIcKvc48oqdGcqG+yTsJfubNPNOY6gUHs7KZp2m4kuo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688366454; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=70LW2EfeUZmge1YOKPtGPy90yYxCL5ZCzFaIUul6Wz4=; b=FAsS+6UgWnWkO+PgiIhN6YyBjP9tXQrjOjxJ0M2hnVCen/wvtpQInDY6sDq/UGLFq7ELUGTox++B0qG3DegEHVu9vW5eQbVjfZREetuPKQT3pPys3YrDJYc7uCJPVtPS0szdXe9JaMwXrcc4LGGq+bFrrtZuB3jBqLnA9TGQ5Nc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1688366454764487.34961058809427; Sun, 2 Jul 2023 23:40:54 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-561--GQcExP8OBWFPrsPunv6zg-1; Mon, 03 Jul 2023 02:40:46 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2C689101A528; Mon, 3 Jul 2023 06:40:44 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 184EC15230A0; Mon, 3 Jul 2023 06:40:44 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 06FCB19465A0; Mon, 3 Jul 2023 06:40:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3F0E11946595 for ; Mon, 3 Jul 2023 06:40:40 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 2D9622166B34; Mon, 3 Jul 2023 06:40:40 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2556D2166B31 for ; Mon, 3 Jul 2023 06:40:40 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 099CB80006E for ; Mon, 3 Jul 2023 06:40:40 +0000 (UTC) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-591-IYqemjK0OK-BEa0Tba94rw-1; Mon, 03 Jul 2023 02:40:36 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B06831FD6E; Mon, 3 Jul 2023 06:30:39 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CF610138FC; Mon, 3 Jul 2023 06:30:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2KhlKA5romShOAAAMHmgww (envelope-from ); Mon, 03 Jul 2023 06:30:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688366453; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=70LW2EfeUZmge1YOKPtGPy90yYxCL5ZCzFaIUul6Wz4=; b=YzH7yIi039c13xQnxaCED29Aedf9PqOaw9zZHgue4KmYrsoQTIhUfHB8uGmyFxNjQJZ3fk O+uFT6JcJ8TDYunv6fea2gkGfuzIXvO3KnUgikieW4WrtBLTC5v0v7CryZZ2m8q/G9VJKK sP3fBAQ6eozNyQcGbzxX87bs0IveFlY= X-MC-Unique: -GQcExP8OBWFPrsPunv6zg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: IYqemjK0OK-BEa0Tba94rw-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH RESEND 3/4] qemu: Generate command line for notify VM exit feature Date: Mon, 3 Jul 2023 14:30:30 +0800 Message-ID: <20230703063031.27687-4-lma@suse.de> In-Reply-To: <20230703063031.27687-1-lma@suse.de> References: <20230703063031.27687-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mprivozn@redhat.com, Lin Ma Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.de Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1688366455579100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Lin Ma --- src/qemu/qemu_command.c | 20 +++++++++++++++++--- tests/qemuxml2argvdata/kvm-features.args | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 656cf55c1e..0b72aed72a 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7067,9 +7067,23 @@ qemuBuildAccelCommandLine(virCommand *cmd, * not that either kvm or tcg can be specified by libvirt * so do not worry about the conflict of specifying both * */ - if (def->features[VIR_DOMAIN_FEATURE_KVM] =3D=3D VIR_TRISTATE_SWIT= CH_ON && - def->kvm_features->features[VIR_DOMAIN_KVM_DIRTY_RING] =3D=3D = VIR_TRISTATE_SWITCH_ON) { - virBufferAsprintf(&buf, ",dirty-ring-size=3D%d", def->kvm_feat= ures->dirty_ring_size); + if (def->features[VIR_DOMAIN_FEATURE_KVM] =3D=3D VIR_TRISTATE_SWIT= CH_ON) { + if (def->kvm_features->features[VIR_DOMAIN_KVM_DIRTY_RING] =3D= =3D + VIR_TRISTATE_SWITCH_ON) { + virBufferAsprintf(&buf, ",dirty-ring-size=3D%d", + def->kvm_features->dirty_ring_size); + } + + if (def->kvm_features->features[VIR_DOMAIN_KVM_NOTIFY_VMEXIT] = =3D=3D + VIR_TRISTATE_SWITCH_ON) { + virBufferAsprintf(&buf, ",notify-vmexit=3D%s", + def->kvm_features->notify_vmexit.mode); + if (def->kvm_features->notify_vmexit.notify_window && + STRNEQ(def->kvm_features->notify_vmexit.mode, "disable= ")) { + virBufferAsprintf(&buf, ",notify-window=3D%u", + def->kvm_features->notify_vmexit.not= ify_window); + } + } } break; =20 diff --git a/tests/qemuxml2argvdata/kvm-features.args b/tests/qemuxml2argvd= ata/kvm-features.args index 9c8236c210..36b7eb3557 100644 --- a/tests/qemuxml2argvdata/kvm-features.args +++ b/tests/qemuxml2argvdata/kvm-features.args @@ -11,7 +11,7 @@ XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGue= st1/.config \ -S \ -object secret,id=3DmasterKey0,format=3Draw,file=3D/var/lib/libvirt/qemu/d= omain--1-QEMUGuest1/master-key.aes \ -machine pc,usb=3Doff,dump-guest-core=3Doff \ --accel kvm,dirty-ring-size=3D4096 \ +-accel kvm,dirty-ring-size=3D4096,notify-vmexit=3Drun,notify-window=3D1638= 4 \ -cpu host,kvm=3Doff,kvm-hint-dedicated=3Don,kvm-poll-control=3Don \ -m size=3D219136k \ -overcommit mem-lock=3Doff \ --=20 2.41.0 From nobody Sat May 18 08:14:10 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=suse.de ARC-Seal: i=1; a=rsa-sha256; t=1688366449; cv=none; d=zohomail.com; s=zohoarc; b=S8tnoVcv2Y0KKwjbnkptJVVniMRlkyljaZDTwSTf59XpCsJW5qcnI8hEUnTmn3/spFIkBM2YhxojOA1iwAR241RFMQNwWEkLUDqvQcD6tI2pT/20efaVCvQPBZyKaqUy9Rrpsvlv9WrkbJmxeZK5yNT51XItbkILA3BkWaeuFc8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688366449; h=Content-Type:Content-Transfer-Encoding:Cc: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; bh=CNKdMk9qP41TD6kZElDFV/XJ3gqOagOYxXQLZCcHixU=; b=ETEMyN5bMzlhFja4K+3pcZv+K5V47u9r9lHNOvfdEBMDDJbjCNB5cTMw2VW9NUhuQBcd6oDb+69YVP/zEZOXM3NIProlXNrpBJdkeJiKF7V2/67sAR+Xl54TS7YTUSrP23NdUyUqqhJc+SoTwXKZgqUJzIwq3WkwySjdFz9oH6U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 168836644904371.47552668827711; Sun, 2 Jul 2023 23:40:49 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-440-KzzDqk62PY-kMsiPmy3N8Q-1; Mon, 03 Jul 2023 02:40:40 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8142D100BAA7; Mon, 3 Jul 2023 06:40:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id A8E7240C2070; Mon, 3 Jul 2023 06:40:37 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1B8881946A52; Mon, 3 Jul 2023 06:40:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id F3E4919465A0 for ; Mon, 3 Jul 2023 06:40:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id DFC56492B03; Mon, 3 Jul 2023 06:40:33 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D78E6492B01 for ; Mon, 3 Jul 2023 06:40:33 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BBAB085A58A for ; Mon, 3 Jul 2023 06:40:33 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-85-86vt0oUPMO-fCrMqpAUp5g-1; Mon, 03 Jul 2023 02:40:30 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E50DC218DF; Mon, 3 Jul 2023 06:30:40 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0DD3A138FC; Mon, 3 Jul 2023 06:30:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kPjiNA9romShOAAAMHmgww (envelope-from ); Mon, 03 Jul 2023 06:30:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688366447; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=CNKdMk9qP41TD6kZElDFV/XJ3gqOagOYxXQLZCcHixU=; b=ODfnFsJE+SUPXogT0qxQCMsO1NeVI2GNLdlSr7m3r5Btsq1o8onEBIPKuta9Fn5BA/xBaP zdwMl7DhYHG2yOIPpZUPJtGx4ETeBKO5Zy8eHsh7YdiBEn5JKEN9+rVQv8WnXP44d6zYHS kLUWm/AkLLAtRjP4/2UNsXlglUe+0H0= X-MC-Unique: KzzDqk62PY-kMsiPmy3N8Q-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: 86vt0oUPMO-fCrMqpAUp5g-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH RESEND 4/4] NEWS: Document notify VM exit feature Date: Mon, 3 Jul 2023 14:30:31 +0800 Message-ID: <20230703063031.27687-5-lma@suse.de> In-Reply-To: <20230703063031.27687-1-lma@suse.de> References: <20230703063031.27687-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mprivozn@redhat.com, Lin Ma Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.de Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1688366450340100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Lin Ma --- NEWS.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 5c28a0579d..4d2b43cbd7 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -24,6 +24,14 @@ v9.5.0 (unreleased) image on discard requests. Disabling cluster unrefing decreases fragme= ntation of the image. =20 + * Introduce notify vmexit feature(x86 only) + + To mitigate the threat that CPU stuck caused by malicious VMs, A VMM c= an + enable notification VM exits to occur if no interrupt windows occur in + VMX non-root operation for a specified amount of time (notify window). + Libvirt is now able to configure this feature by setting the notify-vm= exit + for KVM domains. + * **Improvements** =20 * qemu: Include maximum physical address size in baseline CPU --=20 2.41.0