From nobody Tue Mar 24 01:17:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1773229245; cv=none; d=zohomail.com; s=zohoarc; b=Sw1jHOr43QzNj7LsaqutHz7SgHApzpI+oauOcf7IAizPRNYSdWFkxl2wnSQj7Fn+LlzUALEedH80t0ysajHyJgwaP9bVQaIf53TAWEltDDZ1BjtD5IfVYM3AOSChChiBjH6tU5AG1FyOYO0SgNGZu/IpY3Nzo3tVQykVnFjv6HE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773229245; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=BiuPSmr4gQLFYh4zeMeFU4TPCgpKrk12a6ww2uTqi60=; b=eK/Uz/dgrzPNXBVTpTMeQERgrk0TGPHBsV3QoNrru0oKh6Vo9PGN+xMQm26MtNyyxJvVUMFg/46jE5sYaEyzkx5L9KlWpKalOAxLem1qh1YV56n4VFcRgp0X7jiQjKO7IqYNvZyPIW+T8Ny7ho5GqTcXDqzdvRp+fDcqZSzvzCY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 177322924550612.340465573312827; Wed, 11 Mar 2026 04:40:45 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 6E6C2419CA; Wed, 11 Mar 2026 07:40:44 -0400 (EDT) Received: from [172.19.199.12] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id CB4B141AC3; Wed, 11 Mar 2026 07:39:32 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 73E6D3F316; Wed, 11 Mar 2026 07:39:28 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 03A6D3F308 for ; Wed, 11 Mar 2026 07:39:27 -0400 (EDT) Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-552-TBuebN9kMvGOFX4dODTuxA-1; Wed, 11 Mar 2026 07:39:26 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B7A4E19560AA for ; Wed, 11 Mar 2026 11:39:25 +0000 (UTC) Received: from orkuz (unknown [10.43.3.115]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 51366180035F for ; Wed, 11 Mar 2026 11:39:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HELO_MISC_IP,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773229167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BiuPSmr4gQLFYh4zeMeFU4TPCgpKrk12a6ww2uTqi60=; b=NF87bjTgugQ/5vl8G3Z+YBl/iRYvf71pJE32tHFU8+JiPB+DIcMVtW35Gx4QNCmRWJrlf7 iogas92+qhAgzKvC0CcqJvGtqMxz6nJAx9LpBBIEsjxOWvjqSX9WiRuX6ogdZ1GFIEu5Ll t9+3chziAuBgu39exZJN2dGQiDWQM9w= X-MC-Unique: TBuebN9kMvGOFX4dODTuxA-1 X-Mimecast-MFC-AGG-ID: TBuebN9kMvGOFX4dODTuxA_1773229165 To: devel@lists.libvirt.org Subject: [PATCH 1/4] Introduce EXPAND_CPU_FEATURES flag for domain capabilities Date: Wed, 11 Mar 2026 12:39:18 +0100 Message-ID: <710b10f1e2f047c562e9bf3cf44b9f48c602ba52.1773228421.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Njr5NucVTjIpFLY7vfI73gT_itDcvih9VhJX9d5Cqx4_1773229165 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: K7N7J2I2ZFPLPZOQONY735ZAJQQXVIC4 X-Message-ID-Hash: K7N7J2I2ZFPLPZOQONY735ZAJQQXVIC4 X-MailFrom: jdenemar@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Jiri Denemark via Devel Reply-To: Jiri Denemark X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1773229247394158500 Content-Type: text/plain; charset="utf-8" From: Jiri Denemark The new VIR_CONNECT_GET_DOMAIN_CAPABILITIES_EXPAND_CPU_FEATURES flag for virConnectGetDomainCapabilities can be used to request the host-model CPU definition to include all supported features (normally only extra features relative to the selected CPU model are listed). Signed-off-by: Jiri Denemark --- include/libvirt/libvirt-domain.h | 2 ++ src/libvirt-domain.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-dom= ain.h index d82406fe05..ccc2c87ea8 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -1517,6 +1517,8 @@ int virDomainMigrateStartPostCopy(virDomainPtr domain, typedef enum { /* Report host model with deprecated features disabled. (Since: 11.0.0= ) */ VIR_CONNECT_GET_DOMAIN_CAPABILITIES_DISABLE_DEPRECATED_FEATURES =3D (1= << 0), + /* Report all host model CPU features. (Since: 12.2.0) */ + VIR_CONNECT_GET_DOMAIN_CAPABILITIES_EXPAND_CPU_FEATURES =3D (1 << 1), } virConnectGetDomainCapabilitiesFlags; =20 char * virConnectGetDomainCapabilities(virConnectPtr conn, diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index a1f6efde20..6b8783d57f 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -12330,6 +12330,11 @@ virDomainSetUserPassword(virDomainPtr dom, * instance, if host, libvirt and qemu is capable of VFIO * passthrough and so on. * + * If @flags includes VIR_CONNECT_GET_DOMAIN_CAPABILITIES_EXPAND_CPU_FEATU= RES, + * libvirt will explicitly list all CPU features (in host-model CPU defini= tion) + * that are supported on the host. Without this flag features that are par= t of + * the CPU model itself will not be listed. + * * Returns NULL in case of error or an XML string * defining the capabilities. * --=20 2.53.0