From nobody Sat Feb 7 12:40:56 2026 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=quarantine dis=quarantine) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1686491059; cv=none; d=zohomail.com; s=zohoarc; b=Cwh2oGb400q840aTuYz/2s5WzNceaxKKyqi1zW50+Q4uLOIF8bNeYLCQG0kphZ8qyMRyI6l5DvBR8FjPKypHKkofWGWCCAXtjUELny4PbZxgPWxFuumGA6xc92orMXeS5I8dPBwfvRVbmDoPYCFlUw0KLjNolwjGTEWOtfUclkY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686491059; 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=ddW1dcy1SitEps6ACe4px/PMxbdLEYQWnc98ZeqofKU=; b=muO5QMoJpKXk43Aa//QF9RWajpQ0WRhCpyV3hg01yB0f5x6SWUXyy2JOEHicaAOvuXna6DgzAZHcOO5wwKOONg+h2Hg13BfGcumOaMpCSL635aeHmZQecbh8f9l+Dq3SsfzytLtx2+FsPiXNu3LpioCTx6RVlJuY5JAuqOmq/y0= 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=quarantine dis=quarantine) 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 1686491059453478.01299599263984; Sun, 11 Jun 2023 06:44:19 -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-572-K1uL017IN6ekbI0z-hD-MQ-1; Sun, 11 Jun 2023 09:44:14 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9E7A8185A792; Sun, 11 Jun 2023 13:44:11 +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 803FC2166B25; Sun, 11 Jun 2023 13:44:11 +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 4B2BF1946595; Sun, 11 Jun 2023 13:44:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 93689194658C for ; Sun, 11 Jun 2023 13:44:09 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 679C0C154D3; Sun, 11 Jun 2023 13:44:09 +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 5E90CC154D2 for ; Sun, 11 Jun 2023 13:44:03 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.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 387E980B920 for ; Sun, 11 Jun 2023 13:44:03 +0000 (UTC) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2073.outbound.protection.outlook.com [40.107.241.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-537-qGModsB5PFeDkfY0JcKUNg-1; Sun, 11 Jun 2023 09:43:59 -0400 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) by AM9PR04MB8986.eurprd04.prod.outlook.com (2603:10a6:20b:409::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Sun, 11 Jun 2023 13:43:56 +0000 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde]) by PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde%7]) with mapi id 15.20.6477.028; Sun, 11 Jun 2023 13:43:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686491058; 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=ddW1dcy1SitEps6ACe4px/PMxbdLEYQWnc98ZeqofKU=; b=U4X8ODFDJtzoMNwZvXirg0YN+e0HVsDzM6YogL0zSDL5yZyOLzY+VME1vl+Jkfhi7Ka+0I cySPFtxrNU+WI2QeNblGdRH5V5SpUL4YP+FJpsG8akxImoN/szQ2sQ+YUe2r22Mlxoszof R9jd1xtpa6UFcXquTdEcGgqLl38ymPU= X-MC-Unique: K1uL017IN6ekbI0z-hD-MQ-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: qGModsB5PFeDkfY0JcKUNg-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/4] conf: Introduce notify VM exit feature Date: Sun, 11 Jun 2023 21:43:31 +0800 Message-ID: <20230611134334.3890-2-lma@suse.com> In-Reply-To: <20230611134334.3890-1-lma@suse.com> References: <20230611134334.3890-1-lma@suse.com> X-ClientProxiedBy: TY2PR02CA0034.apcprd02.prod.outlook.com (2603:1096:404:a6::22) To PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8607:EE_|AM9PR04MB8986:EE_ X-MS-Office365-Filtering-Correlation-Id: 83bdecaf-cfa9-464d-417d-08db6a81e741 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: zzynOsufMzXZTsmsJIRoOuhV4H9WLrNNJtml1/loO8tHWy2ilKQlukfpY15IOIRBW42Xj4uWe5SY0kp1zJ2GPkDnvTMuxsd/v+64PPzbu/QKfM+981OZa+g4ONB+gczDhmxVPPcfCJ/bumb5DKMsCaNyBE9U7lq8Lz8qfuRi5zTjHNSRbJL1kmLLGubo3v3eABY3mbPMd2vt7dxXkTQC1hUo1lmEFotNIwzTTAjybbEHeHjzLW55/sxhjQwzJCRyfmc+kj6zQtEupYd/G2+CQG5tqANJd2rp32NhZlO+slCST4aZI4lO3+s8Ju1ELQ/UbwoK7Gj6XOU2MwBKzz38bh8sT2kGAiCsyW1oRVnTkaDfJ1sHEP8amapqxqK60JVwcCnVJie/23UIcYtGoTvYTOYL6+ZIEWKhsMkrukTRXDoCB6GOdi/3FkDSGq9dJ/RMTbFE4AdDwtlS8a7eGdOvq/Gx2id+Q4dsxDR4oMIOOOmpJUbZK9BwwKZ/GGx6wAKPMG7m8h5RAZ6TvLes591K4AUWBG/tdDKkjZadD9U6RdVaNcoTo9+m72zXRqzv3g4j X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8607.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39850400004)(396003)(376002)(346002)(136003)(366004)(451199021)(316002)(6486002)(41300700001)(83380400001)(86362001)(2616005)(6506007)(26005)(1076003)(186003)(2906002)(6512007)(38100700002)(8676002)(36756003)(5660300002)(8936002)(66556008)(66476007)(66946007)(478600001)(6666004)(4326008)(6916009); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HMlGU/phN5yvTX48rvtBh5T35sR2yB6OR3bE0TnEJz9BfpKhQzqtFwP9HVpA?= =?us-ascii?Q?H2P14eMo3FAFxX7WPmU/KT8jDLVP4XF15cq6GGhOtn+d4WknXXTAE8m0Lbsl?= =?us-ascii?Q?a0STLWpdnRonEgqIEiHy+54YmI1EKQgDHt5r0pSMs1/mS9NTrNi9v40nYlyB?= =?us-ascii?Q?3yY6Hkha7c9uklFdWvnsbdVBag44VM2x9SmmrQD7bOpYyj+2ZUZlyyHpGtK7?= =?us-ascii?Q?9WKZUEiOp8iFDy5Yl1wTSletuAnugJog7WUqNJbV+KHZY6AXMlOM7SDy7nNu?= =?us-ascii?Q?fyoKd5wsuLDER69w3E9gYWb31xL7bAkEOhNQGbw6eWrCGM9JdUPCG+4cdvsQ?= =?us-ascii?Q?ptFURULNx/j3AlXXhV3wWxe/si80G2p/Seyo7uzt8cXEMfLfLplDLGyHCD+t?= =?us-ascii?Q?oqErhb3okb2HoN+iKleORYs1inbofnowVBV+soPzssOZoNvXErQsXIUcDgYd?= =?us-ascii?Q?eEzV/0pinM77W192PVLxh3V6iDm+2lR2x0POeYipoeCPiwEFx9uGXfnLewEH?= =?us-ascii?Q?PiXVFYnC/cn0bCIHZH9FhhZz2oNX/cLIHP2/fIcyOgJ0RUThe7MK2AoL5Bnn?= =?us-ascii?Q?ItyuqvGdrkhU3rLdHB1MN1Tp9Akbiy95G+H30Fc/smTfYIpotHmIEHDBE6Al?= =?us-ascii?Q?8MeHwMgmg2qeCvTBfWbJ7m8sgyFsVY6bHKgE09EHxJYDxk0l2PdlcGQ8OWjT?= =?us-ascii?Q?2pz5v4Dmm5oxoj7iG2zJzAHjeoS+O4O7ZStIeH8lm6mxvn4V0o+aJoc54XqL?= =?us-ascii?Q?sAO5V7JPSLiNtnVdpATfxhLMarDRp33RkdEnjxrZ+uKJLjqgT+slLM/72gFk?= =?us-ascii?Q?XcvkKxr0BrgW1NOzLeNIw0YzUhdLUZZ4+U+hp33PlsLaf1DuJtWYdwZ0YJw5?= =?us-ascii?Q?WcljMjjALSwR8t2xrQcXoIdf711/3cYDRs9ZsYVaujaZuPxr1PrF1sKi7ian?= =?us-ascii?Q?qB1Wi8gZcQf1Fwo7fm1v/mE15Gsy7+T2lANDwR8GnDImToM9UhiS4vpIlhw7?= =?us-ascii?Q?hH5+4g70eIO7EhAKNNG2ALLGhyp/eKEjzCUU+6stqNFwCcwLvQqeZoOTvl9b?= =?us-ascii?Q?q11RS4Ut6TMVAbstOnxkzOAsRCfuk3NP0wNZz4pCqFI1xL0Kp1AqroMlnqQJ?= =?us-ascii?Q?35kEmRCQVoNPUqfYDJgMImNBytatPmAEV8A2jECcPhQejPgy4Hoo/ZnXHItY?= =?us-ascii?Q?x57DwjorwSxv9KqMtmTEdJn4N4DhDrvFLPtY4S5HhW6YQYFvAMT6vbOxfieD?= =?us-ascii?Q?j8nEYP/sTxYZU5+wdOMerr2u+kTAq5sA7yA/+CvNaGGPxf1yznW99wC0K+M6?= =?us-ascii?Q?sPtSZTnvcaG3hNUfJ5cj+OIqGAV9ViuirnCET5GIDB1wz/aQ7MyVL4DbAmAn?= =?us-ascii?Q?PcQLAw87dP0bksTmTuX28Fn3NY6SNeCEu20oSHo0qLzvVqqyf9hKF66On23W?= =?us-ascii?Q?8EaUrUvPFV1eqKiqIjmiavnnvAqfb4+solQmky02lDE+7qeINkfSJqPiqgUI?= =?us-ascii?Q?eiZMl963kY+p4u2CwFiXbWlmTWC34/Uwikd7sxRaUPF6qDDPCPFoENR85xf1?= =?us-ascii?Q?umXzDnKzuXsyCurU2OY=3D?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 83bdecaf-cfa9-464d-417d-08db6a81e741 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8607.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2023 13:43:56.7514 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: I9CybzMVHcToJy2j6kshYVjxWUyDkoakedF/Vp6yJr1AlfdCvSTkdngs1dE9DKHw X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8986 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.8 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.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1686491061917100001 Content-Type: text/plain; charset="utf-8" From: Lin Ma 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 c3526439bf..5365d43dd3 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 0edb1bda9d..8a87d8a902 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, @@ -16345,6 +16346,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 @@ -20734,6 +20747,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'"), @@ -27194,6 +27208,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 629e32c39f..9af2687ae5 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -2201,6 +2201,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; @@ -2388,6 +2389,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 c1725bb511..c206f734f6 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -7747,6 +7747,23 @@ + + + + + + + (run|internal-error|disable) + + + + + + + + + + diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index a19902988c..b82ec4508c 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -6474,6 +6474,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.40.1 From nobody Sat Feb 7 12:40:56 2026 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=quarantine dis=quarantine) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1686491069; cv=none; d=zohomail.com; s=zohoarc; b=TitoiEEUPeXDj8vLrWpLPujlk+cGbwLYyK0Fvg3s4g2dEreHR5vOpfcDlzynQMKwC6UX/7eiD/ItCgGTpVgtEMLY6JPjn+EmRMDF9pvq4dCedEwtzlDQgb7S4FY77bsYJ1RZtcXEmJr8irYNdJ0NpmnDe0+UCG4gBndYh7DNW7c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686491069; 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=vaMF9BGcB73UQ/D5wcjdx1qcqIWEOjuA/PZIZKWQLiw=; b=LyXF89Xy1FjyPB5RON2V76AQi/Xz4dqmu4OoVPZylMMa1MjPzZI/XhFVfictlkCO609U5fm4yfEtCJoGilJm0zq7c0t9tfZSyp1zxXQGlfAiyNmRffSVV8+zCibhiIdLf+iwn+vz2XB7QDjS7UchQAkrDDbkUi6OHjA3zqRyubw= 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=quarantine dis=quarantine) 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 1686491069398894.6503653308829; Sun, 11 Jun 2023 06:44:29 -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-74-671yLY1VOoeOBlc0P9GYSQ-1; Sun, 11 Jun 2023 09:44:22 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 03F7F102310C; Sun, 11 Jun 2023 13:44:20 +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 E2F0E20268C6; Sun, 11 Jun 2023 13:44:19 +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 A5A121946595; Sun, 11 Jun 2023 13:44:19 +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 73088194658C for ; Sun, 11 Jun 2023 13:44:18 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 4E7D040C6CD7; Sun, 11 Jun 2023 13:44:18 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 473C3400E6C9 for ; Sun, 11 Jun 2023 13:44:18 +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 2C3058060AD for ; Sun, 11 Jun 2023 13:44:18 +0000 (UTC) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2041.outbound.protection.outlook.com [40.107.241.41]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-639-_U1-lV1ROC6J6RLLvUxxqA-1; Sun, 11 Jun 2023 09:44:09 -0400 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) by AM9PR04MB8986.eurprd04.prod.outlook.com (2603:10a6:20b:409::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Sun, 11 Jun 2023 13:44:07 +0000 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde]) by PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde%7]) with mapi id 15.20.6477.028; Sun, 11 Jun 2023 13:44:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686491068; 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=vaMF9BGcB73UQ/D5wcjdx1qcqIWEOjuA/PZIZKWQLiw=; b=GuS6hJzF4VT8BpOCJMilTnoqb8At4e0VfFIf/EWXnASxWV91l2u4wYVttr4uCJHIr4p4Pl ccbtPIUQfd2jIuRR6YHRc5GbsU9k8zJcBGeqS1imR4FiGB3N7SncYBzX2gw4yFBxWI8S0F hiskeWpwFTAY3d2WhxvZ7x8/+UipkJ0= X-MC-Unique: 671yLY1VOoeOBlc0P9GYSQ-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: _U1-lV1ROC6J6RLLvUxxqA-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/4] qemu: Validate notify VM exit feature is available only on x86 Date: Sun, 11 Jun 2023 21:43:32 +0800 Message-ID: <20230611134334.3890-3-lma@suse.com> In-Reply-To: <20230611134334.3890-1-lma@suse.com> References: <20230611134334.3890-1-lma@suse.com> X-ClientProxiedBy: TYXPR01CA0062.jpnprd01.prod.outlook.com (2603:1096:403:a::32) To PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8607:EE_|AM9PR04MB8986:EE_ X-MS-Office365-Filtering-Correlation-Id: b4bb4d01-3c52-4e1e-fbc5-08db6a81ed5c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: Ea+tPnISoJkZgxbl/hS85XNj+27YRGfsoklFVhE6jnD3xa25kGuuY6C2IucRmBpGTRGZ+rvx2ZHt6+LAMLJDkWNfAPHd/Q/fI28E5QxzByh7Q0vbdHIQg0aueNAOusVA8WLdF+ZnB7CDHIVqOaVieG+1Zp6iPj9c8bLT4/pC/OpzMeqwXx4W+t8YkdHQfXP1dHBi6NfpiJciCiAVsqMs6sIzF4nNkuby5NnB4HDitwPHr7m0+vgbDXb1Mfr8mUwzSxXm7Fi1isDzPx4WPU+OhSX+/BUF/rDRHVCVwinFbQn6COegvNS7PRvNjD2qJ5julUJsptQHDDBVFy50ERtR3+XuH08oT+0YjYhu8HpJgIZnqReJNksYWz6bV6tpI98IOuUnn1ybt2hYPFo7YGaP3Ug24Gqi4JKlaoTjDwAIVZYFeqo9sGtm4EyOkQ0688OlKM8ceU8ZzlSYVmkVDQaHZkWsW0HCFAwxpdphHHo6MIjPt6t2ZK2fvAiJx+tDZjJh/rJKnA1Fv43ShxdRIE22vYuErLhBsVWW+jI8FPyYu23LBKsc9tRC+Rrlq7Wraj2f X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8607.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39850400004)(396003)(376002)(346002)(136003)(366004)(451199021)(316002)(6486002)(41300700001)(83380400001)(86362001)(2616005)(6506007)(26005)(1076003)(186003)(2906002)(4744005)(15650500001)(6512007)(38100700002)(8676002)(36756003)(5660300002)(8936002)(66556008)(66476007)(66946007)(478600001)(6666004)(4326008)(6916009); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1NgRXex9ylOPQVpXvkaP1KCOFOHzJga0SlqrXWIK393pgAVMsguKJ7Xs4mo1?= =?us-ascii?Q?RpxMUjT70jvDDStJSC8PZ3B5woKtGW86PcRKeaDEj2/VOP6u4wHOCi9TxzOm?= =?us-ascii?Q?+C8GLTT/rEoVCihoqXO0L9hrQdFMdP7b1eFKmDWb4ekLXDkD2rvbrYO96yWy?= =?us-ascii?Q?gYtKP/mQaxcJhxViYqVsDrHOx4Px5s7t9vb5al2y/JI+cpMAflpqN0ZQCBYp?= =?us-ascii?Q?ysSCuEwW5XbaBL1c7Px7naL0B7AUG98kdifglUgIR7LAMSDwhDK5IPj8xlme?= =?us-ascii?Q?X8gizJRDf1e2yfcQNdnidg3e8h/tT9Notx0wnSHFat1luaOSwaMPYaD8/cKa?= =?us-ascii?Q?bCvbJavxVz1vi1f42K85rK2VRfQJBLR1cYngdyOCRpdS1+F6THcT0ztpqyzf?= =?us-ascii?Q?mtMweHsBfzml2omuJzFA7gg8G2hqdqoUZKjZXPEE5rJKe5pyNMAqB/B+QKd2?= =?us-ascii?Q?UXq8GUd/E+qbGz/QsUdqVHUNdJiOFtZTiHoKB6YOtbH0PYZ90kXCedLmoZJo?= =?us-ascii?Q?+A7qlxY3qhCiBXZv+fnq72MtIvDSxP0GXYGnsvEdJprfPX/8cp1A+lPRVaA5?= =?us-ascii?Q?KkEgos76zTEYzYOyHvMNoemF5tG5Zmyt8AuewkGZrxA0K6scEVEy3wEOm3hQ?= =?us-ascii?Q?LsTeIIAWvoLFzSKiRHKFxqoSPZsWDg+6Kpl+QCWyGQmhG4aHtc0YVxiDEE/h?= =?us-ascii?Q?XiEXL21EKUvdI7v27tYU/o+cqSRrkCyIv11kkFWcr1Wck7I7VH8CL3OoLIWh?= =?us-ascii?Q?OV4A8F0TxB86b6pZwBaFjTZnIO2hrBYhk2NqMXkTuVtkuqmG5Yw4fD1+rZdE?= =?us-ascii?Q?imZO/LsJ7XnopLRkM7V2D5K/jfw/VYPpeNyHJsErYAhO5+MIz37wddhTQ3qq?= =?us-ascii?Q?I4QZfREwgVih7qgI1uKyCJ8H6jxiPHXFdYz1I8SDcEUZOJGidWqzNbOCdYQ1?= =?us-ascii?Q?G44gANeQfISChhtx91J2HRrxHCeSGvWTfxMLbRjh/KUXWz2R5Fc5QltZelhu?= =?us-ascii?Q?WrmRb4seeCiQsRAy/L/ELL/+kaE7i4ZHCE2pUaegPb7BHubDw3aXN/6kNxdS?= =?us-ascii?Q?S7LpKLEISe4sd36mWxXsq/Awf3eFxh60bK1UruOuwPLShEExMEdkvQmvEZ2P?= =?us-ascii?Q?BJ83h7Pjxs6a7D/rjNXcNCfHntYSt6qnWayBQ6IYJEXGoaP1JEoSxt+AmgDy?= =?us-ascii?Q?VoDx7LkIS3Q67Ao1o8z2yc9P1K1fDRxpITfywkc8aXQFv1PhuSS8k+UmooGN?= =?us-ascii?Q?jxZF2vw4ZxnhDc8mb1/VPT/SpFvuC24YIgzefRuElE+RZMKrWD4R6GhTjrpi?= =?us-ascii?Q?PKpQkd7nutdLzlY6sMlCKAxpdPSLHNWXawhM/WiFRUjyxezIMJb9PTXqyOEg?= =?us-ascii?Q?SfTbVP+Iy3/TurE8jkvtFms+W+40w1U1AsT0yBnVO4nIOkZxIs5maUdcfWKm?= =?us-ascii?Q?MP8b9rlC0x+FH+LhOluuR8bo3CHDrqUJxl8FfXELhdpTtdBk1mj1FVykZ5uq?= =?us-ascii?Q?PhKuR8FVyXl8LGGY+5t2nvXqdDuqlxOq+iCb0rSabFeAP1UtxV25y8aSgPur?= =?us-ascii?Q?AVgrAViOSX9rAIv4Shk=3D?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4bb4d01-3c52-4e1e-fbc5-08db6a81ed5c X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8607.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2023 13:44:06.9761 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hJn1Zh1lacci+tIfXn7fgFKD3fxIrfZ19E0iYFcSNGobEU+0nZnYGepkKr/KRrVP X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8986 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.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1686491071145100001 Content-Type: text/plain; charset="utf-8" From: Lin Ma 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 04d0c9df73..126127423d 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.40.1 From nobody Sat Feb 7 12:40:56 2026 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=quarantine dis=quarantine) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1686491074; cv=none; d=zohomail.com; s=zohoarc; b=ZtUoe7pvnFUCJ3CrGIb0kwaf+s+GZaSxqfOioloKH/nVXLTGgAr//y8QWRzPVDZOUMx4IFkHDjtt0odHsKojTdbvlSTHT1/afzi1cT4VEWdwpfgh/zOdOBFsLfkM1vG4+UJzWhgWUgk/Nt4D9VLo/PT2Nqbd60arYe0zWvA4MiY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686491074; 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=M83xeOuQ8QcB9RDTMYJpcQuUejRIPwhRv+lmiCVLMJo=; b=F5K8iqCNLvRhxP3aFgI6etkAubCtI8cMWbIXE/18L1c7zeTGEUKXOQ5muq/SHuniVBgo+YP+v0aXrFKWWud/IEKmC5KiJz/MP9hFSKjZcDI3iWMe9p6kaETlGXLhz4WVFNHvPMisdTWnyIbTbSigtc/knBDcxaQfpfMFjzWtN1g= 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=quarantine dis=quarantine) 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 1686491074935711.0863917894831; Sun, 11 Jun 2023 06:44:34 -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-524-rWPXYBtCO82fd7tzyn-dbw-1; Sun, 11 Jun 2023 09:44:27 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 30CD78060A9; Sun, 11 Jun 2023 13:44:25 +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 14FA52166B25; Sun, 11 Jun 2023 13:44:25 +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 E531719465B6; Sun, 11 Jun 2023 13:44:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A62E5194658C for ; Sun, 11 Jun 2023 13:44:23 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 884A1492B0D; Sun, 11 Jun 2023 13:44:23 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast09.extmail.prod.ext.rdu2.redhat.com [10.11.55.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8029E492B0B for ; Sun, 11 Jun 2023 13:44:23 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.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 61F7E28237CA for ; Sun, 11 Jun 2023 13:44:23 +0000 (UTC) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2065.outbound.protection.outlook.com [40.107.241.65]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-26-cVHzdcxWMZu7CZqEpOddKQ-1; Sun, 11 Jun 2023 09:44:19 -0400 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) by AM9PR04MB8986.eurprd04.prod.outlook.com (2603:10a6:20b:409::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Sun, 11 Jun 2023 13:44:17 +0000 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde]) by PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde%7]) with mapi id 15.20.6477.028; Sun, 11 Jun 2023 13:44:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686491074; 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=M83xeOuQ8QcB9RDTMYJpcQuUejRIPwhRv+lmiCVLMJo=; b=Yvn6TcC77H5qaOi7JotT0LxebS/7Vx3usRCcAZN+svfaVbeWZATK7tgnv18xc4nXqGk4Fm 8pKXtWUlyNw8x9sSfjn1pnvgX4WA8ff3gFV9bmOmXXbIElsK2AL/YEUXGiHjvksg+/Oq5n Qj3Ac5IgDK5w5ccCxSok4lTSt6iyuX0= X-MC-Unique: rWPXYBtCO82fd7tzyn-dbw-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: cVHzdcxWMZu7CZqEpOddKQ-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/4] qemu: Generate command line for notify VM exit feature Date: Sun, 11 Jun 2023 21:43:33 +0800 Message-ID: <20230611134334.3890-4-lma@suse.com> In-Reply-To: <20230611134334.3890-1-lma@suse.com> References: <20230611134334.3890-1-lma@suse.com> X-ClientProxiedBy: TY2PR0101CA0022.apcprd01.prod.exchangelabs.com (2603:1096:404:92::34) To PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8607:EE_|AM9PR04MB8986:EE_ X-MS-Office365-Filtering-Correlation-Id: 520a3460-271b-4608-a220-08db6a81f384 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: W8Ii5ezoyBVJ7VgljHaHC6HGcUdhdWldyU8CFOQ7FLEjKXQU1WgUvN5eWep7B+q/eTrQo/8xEkVFeiO+fr6tF8Y+8mtYqbUTnC4VfO2RPOwMuUaQM8iz7bZAUXMumtUQE2mTCKi+c87tVE7N2shXM93javlInZsuVd3P1kXw7fdHjvl9TlPcOf/1N31c6gWlOajbBNN8vONmIzlwFiiz6MAbREOto08v8TpUKng3GaN4ej3ZEssXx/mQyn2gqAsDbvnJSvT3ZU1BtTjrp3DbHy/M8UgRjpRGBOv/EZ0armPtDQcu/cXl+6PM8roDe5olk8Rg+d2fiPHox4ko66TQXsQ+oGX7jpJwvz/5gWXzG0ORul7511dP/qqkpvExWCwvE4p/zbCbl2Q5+p2IGkzM9ORAVKujb9cFnRxyPcI0VwM1TaboqSWzv7F9XN3BNelFo8jXFaHXr+Z1M3kv1Opf0UaARW2NVWNwf56TB0tq5eHW/Eo3YssFJvksTOII7JOdJwsbO3QH46yDd/aeMKAzcUV2QpkFtySTQgiBEtt+GZYXrzElKr9JIOJjtn068dB7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8607.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39850400004)(396003)(376002)(346002)(136003)(366004)(451199021)(316002)(6486002)(41300700001)(83380400001)(86362001)(2616005)(6506007)(26005)(1076003)(186003)(2906002)(6512007)(38100700002)(8676002)(36756003)(5660300002)(8936002)(66556008)(66476007)(66946007)(478600001)(6666004)(4326008)(6916009); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?m6pGlYvyBbF5xmvYApkFRWj/XEXRmY31QIokUtJ8A7YlQWyai8PvlCvtPjPW?= =?us-ascii?Q?Vrw6o+Ma2srLxozef/P5kkr1vTqf0VwRjP/dx+7Xu68mpZwRR0J2teMXTsLP?= =?us-ascii?Q?7co6hcSEpYP+hm7qi2FttHnNiWYwaYZvePVKLit2iR0sJ03LwZ6NxlxF+2zp?= =?us-ascii?Q?kcJPuS71mBuQj3DjF7kwpnsjiVnx8B+DKGdjWyadsZ51e85g8ObpSPgnUXLB?= =?us-ascii?Q?llCddaDfmgXGynI5wr6l4xuAJ/dlobBiGn+6hFyJRm72oUFbOkfomsmWVJXi?= =?us-ascii?Q?5mAjBzwF+VFLulo2vX+YaCgwSeHDOlTao13HhV/RcefdgtohwTdWqU9Ly9Ul?= =?us-ascii?Q?MiBWhMxcYn2kk+NlzKXBCGfJ7yNrOr+WkkfsHYi6xvdvbMdGqC4Qe4QaZtdU?= =?us-ascii?Q?U0ssgDasl34nts80U25Wy8Ke21CEFwnc8/XTxXsqTkYlf4FHS9LdcH4nBU71?= =?us-ascii?Q?xP94SNv62ajMPzSF+uRhn/loYTbsdtDYW2aVaATwR+nwcuYpyacx80tWjNLp?= =?us-ascii?Q?5U9VLD+bUXN2Lh5+F2oJ/a512mhxlddJYcGb/ppEMj1n1L3MvbUPeQOcOzdz?= =?us-ascii?Q?S9/3AVgoZtGPf3FnLtqQQ+YwK5GN8ez+q+Mi+fBYKk1kP0j9Rym8ehU1D4v9?= =?us-ascii?Q?0M9uv24hfyEaAgZEVqkNByuZYIaNd5PmZcgTxgxveOWeH37bwg4nX7LfUspf?= =?us-ascii?Q?kjUMC/G7yw5H7jActm+SN2s8EeWXeqo0A1Fk1J/V76QL8+4CnWsxHhwqXHx1?= =?us-ascii?Q?mEaGF7Bzr3qA2Cy5CcFquCSgde+3c89Q1Tt1bqmMrDnXjh6KKGmWP5oZrETi?= =?us-ascii?Q?YAOnz+H2EGXOrvZJ0GCGK8rzTvtrzfagTOvJBrX5x9As8dt+HxNlssmTzKQL?= =?us-ascii?Q?tA3rvQGVGlyyKDeEmbzpUtaD6mhctkXniTBEZnKNYcaKrjRZqudPgf8FdJ2L?= =?us-ascii?Q?ya8FJNPYJ3tT0nyFSofDqNYlcV7x+vBf6CWPdeAU3App6p/KcDvHfVt3fnIV?= =?us-ascii?Q?XlqQKPWE6Y5ej5xbj3DuvRGZ0931C9dw1V0484+5vbvm/j9aKMxSwyhLATDE?= =?us-ascii?Q?QFNYJM+KUKamLqfo+WllvOUBS5drtd3MiLAfpp9k9Ev7+Br7N5AHaNE5dgCG?= =?us-ascii?Q?wjZyikpl6bGTMc7bhplnEEEVbbkaC8FsjRaMfH1WkPB1BVUisbMkCRtvhbhd?= =?us-ascii?Q?wz7DK/464z3fOSw5ddcK4FpuSavHpUBHsMGY03HQ0nKKAffmAnNvZ1baZ+/q?= =?us-ascii?Q?t6O6iWdiRkNo6tj5UnjWF2vC2l42bLoPqCNelba/AEXpwdH0Xh4GSDD/oEMz?= =?us-ascii?Q?g/GUforWvBmZcgxdf/9MW5HG0cbj6oH8JKnwoTDwkBqZDa/Vj6OCSIRuG3BR?= =?us-ascii?Q?KOZeyCFk9UJ7BpZQ6s5wnrTFXokDGsnFPCqYOvgDggSXN5MB5dBon2VbCdLB?= =?us-ascii?Q?wlpwwUd6m1bst+kg4BoNo/duaZgFTFFw2V+a4ShVNz+Sc/jbP6ScXm9BwkTi?= =?us-ascii?Q?LReH2E9nQUrquPD2Vd44W9IlkbSQbuVGKaUFSaAb1xldmgG/FjQSTgxabQO8?= =?us-ascii?Q?C4p7ow+MBETQ3xn/l+k=3D?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 520a3460-271b-4608-a220-08db6a81f384 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8607.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2023 13:44:17.2655 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cViB1mn7SLUN45nsfr28MPF2aW23F44VjuWSGV6mbTuZ7ULMChPXzn1615cuKFJB X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8986 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.10 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.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1686491077022100001 Content-Type: text/plain; charset="utf-8" From: Lin Ma 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 b82ec4508c..cd9b77497e 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -7066,9 +7066,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 985d406ad7..51d5a6aae2 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 214 \ -overcommit mem-lock=3Doff \ --=20 2.40.1 From nobody Sat Feb 7 12:40:56 2026 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=quarantine dis=quarantine) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1686491097; cv=none; d=zohomail.com; s=zohoarc; b=Cs6toFG+6kAC7GOo2WVY7phBxpLWqyZZ70tkJ4djatyNDnlFTpTJCrpev8sJRs/IS4QpU+7XaVnbS9QAjdfoRABw4NSN7ry6AzcCLnRTHamHrseIWoruu25+Dxe5fMkiwbXTvxks+pEHvsxieUDY+ANUWeQ8z1l5dvvW4MYc3a0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686491097; 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=2yiex1ojPaRERZj8c9gzA3m+xLfRa9i5x3aW1oYhpDw=; b=BF+Ex5jSEQBKTUbvtp0fTj2kSjMk8GiTwlapiiBHcOWgGdq5qRDmFI5VaUGKA03xYpY3L80TMv4vJCiH+lf+Ff6Qz1ykeows+tUzolvnzXvOTIyALXa3qvx+w/mk4CbYYOJRPYTlpttq0/1SMnExYQfFwumm8GLHORfqbxm4BhQ= 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=quarantine dis=quarantine) 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 1686491097611235.24183159342272; Sun, 11 Jun 2023 06:44:57 -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-368-JVu7yDQXOBuUNHcK-TqgQQ-1; Sun, 11 Jun 2023 09:44:49 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8921885828C; Sun, 11 Jun 2023 13:44:47 +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 733BE492B0C; Sun, 11 Jun 2023 13:44:47 +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 3DB5D1946595; Sun, 11 Jun 2023 13:44:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 4ECED194658C for ; Sun, 11 Jun 2023 13:44:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 3CC0F140E956; Sun, 11 Jun 2023 13:44:46 +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 3481D140E954 for ; Sun, 11 Jun 2023 13:44:46 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (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 1990B857F86 for ; Sun, 11 Jun 2023 13:44:46 +0000 (UTC) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2049.outbound.protection.outlook.com [40.107.241.49]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-76-xPK3EL9SM96IZ1gA7VHrPA-1; Sun, 11 Jun 2023 09:44:35 -0400 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) by AM9PR04MB8986.eurprd04.prod.outlook.com (2603:10a6:20b:409::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Sun, 11 Jun 2023 13:44:27 +0000 Received: from PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde]) by PAXPR04MB8607.eurprd04.prod.outlook.com ([fe80::ff9e:3629:f0c8:cfde%7]) with mapi id 15.20.6477.028; Sun, 11 Jun 2023 13:44:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686491096; 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=2yiex1ojPaRERZj8c9gzA3m+xLfRa9i5x3aW1oYhpDw=; b=R6kWcUAitQoE4Nhy9N3Ind3mgSYI/fXKWCC6kNGeBUNjFUIWJyTZZ2JQ2vZHhDhCZrulWp 1kq9rc5EYQhmbmOKgKgypYZ+SBEm55aGzsRXAtuHAsS/jEWqfb40tZqoY7SkQTSakIBf8z 77dMYXLHpHIBf67eBPGB/osO/QPw5vQ= X-MC-Unique: JVu7yDQXOBuUNHcK-TqgQQ-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: xPK3EL9SM96IZ1gA7VHrPA-1 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 4/4] NEWS: Document notify VM exit feature Date: Sun, 11 Jun 2023 21:43:34 +0800 Message-ID: <20230611134334.3890-5-lma@suse.com> In-Reply-To: <20230611134334.3890-1-lma@suse.com> References: <20230611134334.3890-1-lma@suse.com> X-ClientProxiedBy: TY2PR0101CA0023.apcprd01.prod.exchangelabs.com (2603:1096:404:92::35) To PAXPR04MB8607.eurprd04.prod.outlook.com (2603:10a6:102:21a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8607:EE_|AM9PR04MB8986:EE_ X-MS-Office365-Filtering-Correlation-Id: 5dcb03ec-1248-4373-8376-08db6a81f9a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: 5N/UnAyXXIow4CTLDxbCp5+cfmZwJv2tvsQSoedXpkOtbyZMw8pa63S2erZiUREJhIVyc7hbYsa0QHqqvv4kMSZGN/xiCgnensLDt4NdRYgSM3KaK+tFfliLue35j6SC/UVNUftcacvFIWOTgLs5Im/cQcqwStJ3UMr3E3vDiVJhr07X2I9Pd1vmcJHT4HUw3y9FTjAA1nKSYvEmNRut5wvpoHnw0XS3pOiBQuNieSA5fmR7gwgrYNLZ3wYtiaZZgWG07XdAx4/vcZTLBOTqDF+8WrDh1CeLo+bQHBZus0yrZQthejopCjhGjECO85MnrRh+mBhKE1xsE3s/1i1AJ1Ifs5U7M/clGCy9E/XQEzNXvrC2+dzmcVpq4KaJchfvexurcAkBrMLu7msREsmjOL61Von0CjcIbvDeIraU5nGQtv/AJUJH/8wfPT00nxrRfkmlN6l0mYSqvX5Aur40gmkqBpqIgjKfLrLfOgkZcnq9NiPwILbO1kv4/HW2SMQ4VQZLIL+neC17NGfk+Q5a0PjnNsGKyX9h8QwSHYYFMguTgNScbErx0uqIjZc2Wx1+ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8607.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39850400004)(396003)(376002)(346002)(136003)(366004)(451199021)(316002)(6486002)(41300700001)(83380400001)(86362001)(2616005)(6506007)(26005)(1076003)(186003)(2906002)(4744005)(6512007)(38100700002)(8676002)(36756003)(5660300002)(8936002)(66556008)(66476007)(66946007)(478600001)(6666004)(4326008)(6916009); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?DODH4A9ggdl6yD4MQBZFm+0CVRRiGXmGnStHTVy6yvOY9F7JR8k2XoULEKcE?= =?us-ascii?Q?ykEugChLycbrDflSABSwJGcc3bPqVAzG2W8xsUK7hKysmWJLO50QnljB16F4?= =?us-ascii?Q?jeuIglccIHY3X+Hry+ET//pwmeuZgZyvRbRUnrjOjKI/hvd1AJ+lmMp5UHnA?= =?us-ascii?Q?XAzvQTD04r8xazP992cSGITDu/XrqCIEiX/NdFOswMheCQZz934WkALYMKdy?= =?us-ascii?Q?PgdqgjzoTRVMMuDnh+V0kDipcd2ijb0o9kmhDGimTaIp11qxE4jtt+G4TtuS?= =?us-ascii?Q?/Jrp0ZRETxrUiGESGmEUe89TSsCQKaf/f7lrqzjoPPRw7MQLkUs6EFDo7XDU?= =?us-ascii?Q?VoUJZUOlWUuqQm987fhx0jx6cucBLW8D4FNXO1EDuC7VRgszcY4TqI+zhgum?= =?us-ascii?Q?Aj0r1cdEaXzzj95l9ajwlxgn2AMWQsovHFcPowMo4pl0wlRIIeDIstXYiMJH?= =?us-ascii?Q?C0sbzK6q8D3nuRppUpMjqGXgadTsRlvY9w/oRs+Jck1upmjOtDB5aBUDfMeT?= =?us-ascii?Q?NjnKtUSkQGy2cli5alFxZthP+q3G40bzMcOFhABVmt28RK4RNV71qTMwqa9m?= =?us-ascii?Q?LZB99Y2leCSda+FWy3aSKXipbH2Yv6+6LDJcjvqcpQN9yaLrFm8XO8HikfzB?= =?us-ascii?Q?C9IiRaSvMUiB+K/r4r2lDo0rvwyCNciC7Wnqi6PMK9xuZoDYti0Maqo6IhTT?= =?us-ascii?Q?c6DwKZpnuYtbM25WFlFUJfdv+4dYxav+Y7W/ycEkNByCU27d6R9iAGr5a78P?= =?us-ascii?Q?CniQEBtmpBf53opAeQCuTVtBChw5VQMk64OiczbWu5H9nbk1EUe9bFYQeYLu?= =?us-ascii?Q?k71yZYjSOB9f4nJNYJzgcDWjCQeMxAa4K92g7qfc1WFn56DwejpRTy4t5HtE?= =?us-ascii?Q?rOgJf5KnAG6+Fxz69/WQNGUTLvxrFUwqGAkI7eGAdkxaB+ok0aqIJA+z+L/n?= =?us-ascii?Q?cOLzhmUNU/WIDtE7b1AE+U9rz19K6aSQwySro9NxDm0KSrnvm7O3+v3XCAdF?= =?us-ascii?Q?+CL3ZeMpSalN/EAhk/yz+QejjmSG2m1qJWrGm0/Ux8+LsRewDeUWZuVt93Im?= =?us-ascii?Q?thY12a+/8+yCtxn53BgldLVpl91PvN1JbH2l7cIAGFvbAfu3nvpf7UizgS8S?= =?us-ascii?Q?9Omq4xsUsAiXbOJk4QExyB2yQxg8QZVN6OE3Up32RDlqr8hL43Hinf6qLy5D?= =?us-ascii?Q?rHyKk6YXmu/HF4Be8DtD9A1S+/FPBaMPmB6H+gK0p4HPpJ2iEUpe1TLZFHfR?= =?us-ascii?Q?GVoGg4hctIAj8nTdiLEqc9QWJjDHmLz6vmYPcqVNmPtVEGhq8gbpLe21pBht?= =?us-ascii?Q?Dr0mRklOyO5g3DLIWqCQ2iQGOWISJqD+/ti46xtDIeD9kTvylzZlIXwMIl4c?= =?us-ascii?Q?CHHzt6ZHaWmOHOvyVvT4VqLrV2ZtmTBtgTA/F4HZ7y674SF1UjzoBSwyA/8q?= =?us-ascii?Q?J/XEQr+BQLumszdBgcW4tkkF7pQrl7+fHyYhtJ0PU7PEKJNVg+xakIRaLwc0?= =?us-ascii?Q?j/vp3OcF701itgT+0zFeGjeQnBJAxnWoRlHui/C+BjKuGHhADD2NPvi4oSqh?= =?us-ascii?Q?JOsW3kxiZG8I8ldios0=3D?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5dcb03ec-1248-4373-8376-08db6a81f9a7 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8607.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2023 13:44:27.5620 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GT/jUAWvBHnhq2vqevgFqng2IFWaBxQZi6gzWM+ctoPCR3CQHN0aUZFaqusKsaJn X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8986 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.7 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.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: suse.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1686491099134100001 Content-Type: text/plain; charset="utf-8" From: Lin Ma Signed-off-by: Lin Ma --- NEWS.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index b1cccee4fa..843578d183 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -17,6 +17,14 @@ v9.5.0 (unreleased) =20 * **New features** =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 * **Bug fixes** --=20 2.40.1