From nobody Wed Mar 12 17:17:14 2025 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 1740573663319998.1693561512462; Wed, 26 Feb 2025 04:41:03 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 5020A1789; Wed, 26 Feb 2025 07:41:02 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 0678B18E2; Wed, 26 Feb 2025 07:40:32 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id E8113172F; Wed, 26 Feb 2025 07:40:27 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 67AA016C2 for ; Wed, 26 Feb 2025 07:40:27 -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-94-ZoVMYi42PaSOtsGLjRckfA-1; Wed, 26 Feb 2025 07:40:25 -0500 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 A606819560AF for ; Wed, 26 Feb 2025 12:40:24 +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 358B3180087F for ; Wed, 26 Feb 2025 12:40:24 +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.8 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=1740573627; 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=6w01mtkFxgowCy47Cp5C6Bn4vDvWb/PVJKHrLEhCuts=; b=VEDlWRKbNB6qm6pMQyv8vX8isaWvlL361ngucMcnHvfeNjfvMihQCUSlzPgeHoxOX8TqBp NRSDJ/TeWijMYatPEGjhXe3iE8IOzBwrY7EINE4it1EhCF/ioglYEBLZBzz6apM6OHcW7g KdsbeOSCwpzIaQEtYowehuDjdQNQnaw= X-MC-Unique: ZoVMYi42PaSOtsGLjRckfA-1 X-Mimecast-MFC-AGG-ID: ZoVMYi42PaSOtsGLjRckfA_1740573624 From: Jiri Denemark To: devel@lists.libvirt.org Subject: [PATCH 1/2] cpu_arm: Report vendor ID for unknown PVRs Date: Wed, 26 Feb 2025 13:40:18 +0100 Message-ID: <6a5c538d19a9b30f53653b2410a8fd414828c132.1740573557.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: 9bTiWOezpLzRV2EGaPBqerNX1ehMNRhxD2BVm_7Vr6I_1740573624 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 6I6P4XD5QXBQSCR6UR47NELBQERLT6CJ X-Message-ID-Hash: 6I6P4XD5QXBQSCR6UR47NELBQERLT6CJ 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: 1740573665032019100 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark --- src/cpu/cpu_arm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 7a9c8163c8..8e6e11dc57 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -604,6 +604,8 @@ virCPUarmCpuDataFromRegs(virCPUarmData *data) /* parse the corresponding vendor_id bits */ data->vendor_id =3D (cpuid >> 24) & 0xff; =20 + VIR_DEBUG("CPU vendor 0x%02llx, pvr 0x%03llx", data->vendor_id, data->= pvr); + features =3D g_new0(char *, MAX_CPU_FLAGS + 1); =20 /* shift bit map mask to parse for CPU flags */ @@ -635,8 +637,8 @@ virCPUarmDecode(virCPUDef *cpu, =20 if (!(model =3D virCPUarmModelFindByPVR(map, cpuData->pvr))) { virReportError(VIR_ERR_OPERATION_FAILED, - _("Cannot find CPU model with PVR 0x%1$03llx"), - cpuData->pvr); + _("Cannot find CPU model with PVR 0x%1$03llx, vendo= r id 0x%2$02llx"), + cpuData->pvr, cpuData->vendor_id); return -1; } =20 --=20 2.48.1