From nobody Mon Feb 9 10:30:41 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=1770133496; cv=none; d=zohomail.com; s=zohoarc; b=YQQgX+wjlE6cHWtJL1zMJSxKwNMcZEaPhuOq3ZCwCzOe2UJNtJjBzZqtf25oc92zZKEfBGFTpTHUxxZ321E4tdGlUYr/6oEtxiUFj8koNBqpa7c+pllFVGEHAJzvEfrVcjm41gN9PqxGysbrhEANOG4oh1qGxYu5uI5lFXeqKvc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770133496; 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=UTV4z+1qoy3/HvVKAmC/7Kwg/MeqvhwU4rhG5GFqvlo=; b=PHIsHE2Arj4/vB2WglAcfw3wqLIrThpyCiF8cefTWYScGN9IeNiCewzkWgbXXVT2JBPx1JNQ6QM10sH5XA9O40irYJ01TUOiuj4zvyWxDeHjowhTjc6o5RVXkUntBCmjsqtQXimKeDT/KC3tnfi7ygH4gCAtC34Sd16WxYuGEAs= 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 1770133496390341.90412315688855; Tue, 3 Feb 2026 07:44:56 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id CFB7B419EC; Tue, 3 Feb 2026 10:44:55 -0500 (EST) Received: from [172.19.199.6] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 0FB8743E43; Tue, 3 Feb 2026 10:41:03 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 48AE03F33A; Tue, 3 Feb 2026 10:40:58 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 B585A41B63 for ; Tue, 3 Feb 2026 10:40:08 -0500 (EST) Received: from mx-prod-mc-03.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-63-BhAn33NaOpm94ayFActjmA-1; Tue, 03 Feb 2026 10:40:07 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4421D1956060 for ; Tue, 3 Feb 2026 15:40:06 +0000 (UTC) Received: from moe (unknown [10.43.3.236]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 97B141956048 for ; Tue, 3 Feb 2026 15:40:05 +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=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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=1770133208; 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=UTV4z+1qoy3/HvVKAmC/7Kwg/MeqvhwU4rhG5GFqvlo=; b=NmWg21EYrEgpZvMMO9mpeTVnEWr//r+5lZ0uPfhWwPdUYtkKUDgSbCw9zsC9/me0+cOK9c wpDN9O4NMe7LQu92oIXhG8x9UxX4oJBM+NyjYbYuR3iesE5DmzQkRnE4XUl4XMoT7sHhI0 SKKWtXEt69DHU/LNf2+EA0WXkfQxRs8= X-MC-Unique: BhAn33NaOpm94ayFActjmA-1 X-Mimecast-MFC-AGG-ID: BhAn33NaOpm94ayFActjmA_1770133206 To: devel@lists.libvirt.org Subject: [PATCH 5/9] bhyvexml2argvmock: Provide virCPUProbeHost() Date: Tue, 3 Feb 2026 16:39:53 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: mPEfP5xjBvK9KgrHSKpbyo876-kOccl30dG9KTOXu7Q_1770133206 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: JBW4XAIGKFAR6H5RRPWTS6TJOLSO56MQ X-Message-ID-Hash: JBW4XAIGKFAR6H5RRPWTS6TJOLSO56MQ X-MailFrom: mprivozn@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: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1770133500944154100 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik The bhyvexml2argvmock is loaded by bhyvexml2argvtest which calls virBhyveCapsBuild() which in turn calls virCPUProbeHost(). To make our test environment stable, it shouldn't depend on actual CPU and thus mocked implementation for virCPUProbeHost should be offered. Surprisingly, this is done in bhyveargv2xmlmock but not in bhyvexml2argvmock. Until now. Signed-off-by: Michal Privoznik --- tests/bhyvexml2argvmock.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/bhyvexml2argvmock.c b/tests/bhyvexml2argvmock.c index fe76564d51..7dbdd48682 100644 --- a/tests/bhyvexml2argvmock.c +++ b/tests/bhyvexml2argvmock.c @@ -8,6 +8,8 @@ #include "virnetdevtap.h" #include "virmock.h" #include "internal.h" +#include "cpu/cpu.h" +#include "testutilshostcpus.h" =20 #define VIR_FROM_THIS VIR_FROM_BHYVE =20 @@ -89,3 +91,9 @@ int bind(int sockfd G_GNUC_UNUSED, { return 0; } + +virCPUDef * +virCPUProbeHost(virArch arch) +{ + return testUtilsHostCpusGetDefForArch(arch); +} --=20 2.52.0