From nobody Tue Feb 10 04:14:09 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1660141869; cv=none; d=zohomail.com; s=zohoarc; b=gq4xCUi5+Zu7/eO9Y+d8Fcarc4qgHQr2sHwBazmmBJrSOojujdorpBkUilHT7wfCSzKosJZASM2bjK9YZVvRo0s07rNsSNY8EYX5oXiFuQHmvHq0uMEvCGRRRSbV/k+gZ3iUzSYC4KLTw8xAQfdf/dKesOJPbIW6dxbbVrvQKmg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660141869; h=Content-Type:Content-Transfer-Encoding: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=yVJTTg7dWlqHuMyTQJkWpQ/CJ6Ma7YTW3C1TSwIGyBc=; b=JgZjL2igPig+O+phDYjzQ6BvtEZEH98gCB/XBjWBI+e2KZyc1nD+zBWfyRdxiEEQgj9SmL4fvHPavDcoOaAaC23ikyDLfz0e2CmthcZ1AN+C+i5OolgsL7bYxrMcjS5ugytbAHRw8Nh+7wbRirqIvkzlc6tPeLwEXJKnSHvlpUY= 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=pass header.from= (p=none dis=none) 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 1660141869090699.1257623542374; Wed, 10 Aug 2022 07:31:09 -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-32-YVWM0Vo7O9awO4lT1tT3hA-1; Wed, 10 Aug 2022 10:31:05 -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 D445E803FFA; Wed, 10 Aug 2022 14:31:02 +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 BF5C1492C3B; Wed, 10 Aug 2022 14:31:02 +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 1AF111946A50; Wed, 10 Aug 2022 14:31:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 250461946A4F for ; Wed, 10 Aug 2022 14:29:49 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 09EC0492CA4; Wed, 10 Aug 2022 14:29:49 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.40.193.88]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8F039492C3B for ; Wed, 10 Aug 2022 14:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660141868; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yVJTTg7dWlqHuMyTQJkWpQ/CJ6Ma7YTW3C1TSwIGyBc=; b=CXvYQCu9aJeT86xakBmmE+W9VzAPN9ldGyn4jTOTuCGP8GWoMlQgmJi6SzPYvub9YRoDQ/ /gRo9CyqjWUWxNhBWcIa8hciLc7N30OMAqFnOp7Z+ZBhyRFimvAIUAMRgrjw3W1UXQ5ZXD k1+wYB64mFigAEdlWOh0OELkddyh91Q= X-MC-Unique: YVWM0Vo7O9awO4lT1tT3hA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 3/3] tests: Mock virQEMUCapsProbeHVF() Date: Wed, 10 Aug 2022 16:29:44 +0200 Message-Id: <20220810142944.106731-4-abologna@redhat.com> In-Reply-To: <20220810142944.106731-1-abologna@redhat.com> References: <20220810142944.106731-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1660141869621100001 Successfully returning without doing anything is what the function already does on non-Apple platforms. When building on macOS, however, the check for HVF availability will be performed. When running on bare metal, that will result in the QEMU_CAPS_HVF flag being added to the virQEMUCaps instance, and a bunch of error messages along the lines of In 'tests/qemucapabilitiesdata/caps_6.2.0.x86_64.xml': Offset 7557 Expect [c] Actual [hvf'/> Signed-off-by: Andrea Bolognani --- tests/domaincapsmock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/domaincapsmock.c b/tests/domaincapsmock.c index d382d06e27..4d53e48c48 100644 --- a/tests/domaincapsmock.c +++ b/tests/domaincapsmock.c @@ -51,6 +51,12 @@ virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCa= ps) =20 return real_virQEMUCapsGetKVMSupportsSecureGuest(qemuCaps); } + +int +virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps G_GNUC_UNUSED) +{ + return 0; +} #endif =20 int --=20 2.37.1