From nobody Thu Dec 5 01:43:50 2024 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=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 173231129218457.629966485921386; Fri, 22 Nov 2024 13:34:52 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 91F0D1779; Fri, 22 Nov 2024 16:34:51 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 54DF9151D; Fri, 22 Nov 2024 16:33:27 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id B7E42139B; Fri, 22 Nov 2024 16:33:24 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 36F90139E for ; Fri, 22 Nov 2024 16:33:24 -0500 (EST) 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-45-78D3OqCrPr-8Om-Bw1DHiA-1; Fri, 22 Nov 2024 16:33:22 -0500 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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 BAA67195608B for ; Fri, 22 Nov 2024 21:33:21 +0000 (UTC) Received: from orkuz (unknown [10.45.224.26]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3F05E1956086 for ; Fri, 22 Nov 2024 21:33:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732311203; 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=GoWxf7w+X8WDcrg1tDuang7EhXmxpsV7pg/jmL9tUe0=; b=P/4Z9NuUVPzj8CSRY0+z8RZWVC6Pv2Ny7TR5nOoh7ag4JL6JNOParn/SZvyvCcGoWLVQp5 XIjrm5QSk5QrE4dlqVej7S+8sHLM7HKTv3+M/GX8jhn1LtXf2GoCBa3vFEsDeTrPDmmxEj IA0mVNRjSzh6p7Xj+7ptqSKCpmvXJPY= X-MC-Unique: 78D3OqCrPr-8Om-Bw1DHiA-1 X-Mimecast-MFC-AGG-ID: 78D3OqCrPr-8Om-Bw1DHiA From: Jiri Denemark To: devel@lists.libvirt.org Subject: [PATCH v2 01/36] cpu_x86: Annotate virCPUx86Model fields Date: Fri, 22 Nov 2024 22:32:41 +0100 Message-ID: <1e8736eabe3da2793e3147e16a1d500994692aed.1732311125.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: CAeU-0MVTLrFsOTD6_T1u1IO5X-xCUT7_-37mEZeZ_c_1732311201 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: TIWBR5NDE4W3TWBVCPNMO6EE67XCUXBQ X-Message-ID-Hash: TIWBR5NDE4W3TWBVCPNMO6EE67XCUXBQ X-MailFrom: jdenemar@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1732311293316116600 Content-Type: text/plain; charset="utf-8" Document which fields are inherited when a CPU model is based on another model. Signed-off-by: Jiri Denemark Reviewed-by: Daniel P. Berrang=C3=A9 --- Notes: Version 2: - new patch src/cpu/cpu_x86.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 97d6e00007..37f3b6e3ce 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -147,13 +147,21 @@ struct _virCPUx86Signatures { =20 typedef struct _virCPUx86Model virCPUx86Model; struct _virCPUx86Model { + /* Not inherited from ancestor */ char *name; + /* Not inherited from ancestor */ bool decodeHost; + /* Not inherited from ancestor */ bool decodeGuest; + /* Not inherited from ancestor */ bool compatCheck; + /* Inherited from ancestor */ virCPUx86Vendor *vendor; + /* Inherited from ancestor */ virCPUx86Signatures *signatures; + /* Inherited from ancestor */ virCPUx86Data data; + /* Not inherited from ancestor */ GStrv removedFeatures; =20 /* Features added to the CPU model after its original version was rele= ased. @@ -164,6 +172,7 @@ struct _virCPUx86Model { * included in the CPU model by the hypervisor, but libvirt didn't sup= port * them when introducing the CPU model. In other words, they were enab= led, * but we ignored them. + * Not inherited from ancestor. */ GStrv addedFeatures; }; --=20 2.47.0