From nobody Fri May 17 03:54:46 2024 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=1660141831; cv=none; d=zohomail.com; s=zohoarc; b=ekHe5OnCSLJ6aGbLZPhChMA40ycobeINenj5pOawCc81H1HEv+UKFLbSdCffvUS3Vc2zRx7d+9rR1zfMW9bcxr2lFFBQrxU4S6gSp+gN/IAhpAY3iUq9BeNV/51zrQn38U2sWNGG5v5HiU/X+WddDZRqLFTklgBs2Yeoftx0g7g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660141831; 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=k7S+yTYYw6JGuFv2A0vk+oFaRnKYdPLUDpIwD7THM34=; b=iH3rS8Uz8eOzxK0zZveoNzEituB7kqIM1gCMsamwverEnT5ySVltChO9dsO0wuCknBnULR7Vw3iUEawuDMioGYivy8QBzqb3BqiIKRyIA7FyqIEFwSKNAPJlSJM1TDRX7zCeP5ODY505ZoE378UZxMjia0iFgpN7AX9cXowkVv8= 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 166014183146117.29446365003173; Wed, 10 Aug 2022 07:30:31 -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-658-QcXM_RtfOUSHME3qPKO1DQ-1; Wed, 10 Aug 2022 10:30:26 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5E0D8101161F; Wed, 10 Aug 2022 14:30:23 +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 C20B7C15BA1; Wed, 10 Aug 2022 14:30:22 +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 5EF511946A50; Wed, 10 Aug 2022 14:30:22 +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 A22E21946A4F for ; Wed, 10 Aug 2022 14:29:47 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 82D61492CA4; Wed, 10 Aug 2022 14:29:47 +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 13754492C3B for ; Wed, 10 Aug 2022 14:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660141830; 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=k7S+yTYYw6JGuFv2A0vk+oFaRnKYdPLUDpIwD7THM34=; b=WzpO2u20ecG2iL+eMNUxaQ9hdzm384VdGpBMAt4zY3F6sxsgLOn3oJgRLxfJUB1X4r4Lzx amrDVHqzcEdl1goqxp8zaDDWOx9vpMWir3Dt9vTGr5RjrD8ozZmN6ilIsQH2cq0rh3sHHk 6JjLNL6j9pEQwqBmh1++SdFr2rpDTuQ= X-MC-Unique: QcXM_RtfOUSHME3qPKO1DQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] tests: Use domaincapsmock in qemucapabilitiestest Date: Wed, 10 Aug 2022 16:29:42 +0200 Message-Id: <20220810142944.106731-2-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.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1660141833368100001 Content-Type: text/plain; charset="utf-8"; x-default="true" This doesn't change anything at the moment, but is necessary for the upcoming fix. Signed-off-by: Andrea Bolognani Reviewed-by: Christophe de Dinechin Reviewed-by: J=C3=A1n Tomko Tested-by: Christophe de Dinechin --- tests/qemucapabilitiestest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemucapabilitiestest.c b/tests/qemucapabilitiestest.c index 79dd358ef4..0066ba15fa 100644 --- a/tests/qemucapabilitiestest.c +++ b/tests/qemucapabilitiestest.c @@ -230,4 +230,5 @@ mymain(void) return (data.ret =3D=3D 0) ? EXIT_SUCCESS : EXIT_FAILURE; } =20 -VIR_TEST_MAIN(mymain) +VIR_TEST_MAIN_PRELOAD(mymain, + VIR_TEST_MOCK("domaincaps")) --=20 2.37.1 From nobody Fri May 17 03:54:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1660141834; cv=none; d=zohomail.com; s=zohoarc; b=nzOSOgXdcXwROhymIVS4HIIHate56phWh6ZSs46+bJvSfAUMa+6cbGrM+9RV2SS6wEHVzneM3GwniRrIULD5728nriMDkwkuRbOYfIspcQtsTOwMt6LAOf/P2K9azCfqiDOzP1Tc5xSV5XvsXPqyF5e+Dc9tZ3tPGYLreFqifzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660141834; 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=uJXVmClEAXy2Raz5N1pQNlhK76H3dlvZEfq3ot05s64=; b=Yx0HNr7JjNkTL3eg66zK4U3y+l+aDzWp5hvvHozISy2idMWrXMP6ht10HbD8uslyNYK80cJO91CGDtL4Gar4JHMTcNdrJ54HEaKSkgfrRuPbEkqjBoa+riGQUOOKlTGBYSX8VBlRGWEqTqykeH7i2YeemNYAF1eQl3kcTJSv38s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1660141834396350.9577510951451; Wed, 10 Aug 2022 07:30:34 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-669-Yj5NjlNsPme661MFmc9VVg-1; Wed, 10 Aug 2022 10:30:29 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 12A982999B36; Wed, 10 Aug 2022 14:30:24 +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 F38D6945D0; Wed, 10 Aug 2022 14:30:23 +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 B513D194F843; Wed, 10 Aug 2022 14:30:22 +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 60CA91946A4F for ; Wed, 10 Aug 2022 14:29:48 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 45F65492CA5; Wed, 10 Aug 2022 14:29:48 +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 CB058492CA4 for ; Wed, 10 Aug 2022 14:29:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660141833; 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=uJXVmClEAXy2Raz5N1pQNlhK76H3dlvZEfq3ot05s64=; b=KRgBi6HBIIYRtfGV1Fo5LByl4aHiSvN6gy3i/2vnX6ksED9sIK14DXhatoChUBYf2lY5My eDhqa+a+CxDgWu+bN4PKYTm4JZ5KNuoEGmFqBFan+7J/8GOFeregT1HYYV3myNqt0lCTFp NM+3dRLtfydVzL6k2pXFVFM+/dlKUqc= X-MC-Unique: Yj5NjlNsPme661MFmc9VVg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 2/3] qemu: Make virQEMUCapsProbeHVF() non-static Date: Wed, 10 Aug 2022 16:29:43 +0200 Message-Id: <20220810142944.106731-3-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.79 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1660141835339100003 Content-Type: text/plain; charset="utf-8"; x-default="true" We need to do this so that we can mock it in the test suite. Signed-off-by: Andrea Bolognani Reviewed-by: Christophe de Dinechin Reviewed-by: J=C3=A1n Tomko Tested-by: Christophe de Dinechin --- src/qemu/qemu_capabilities.c | 4 ++-- src/qemu/qemu_capabilities.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 79ef8b88ef..80a8002f0c 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -3259,7 +3259,7 @@ virQEMUCapsProbeQMPKVMState(virQEMUCaps *qemuCaps, } =20 #ifdef __APPLE__ -static int +int virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps) { int hv_support =3D 0; @@ -3281,7 +3281,7 @@ virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps) return 0; } #else -static int +int virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps G_GNUC_UNUSED) { return 0; diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 20b1034ca5..b172cfb7f1 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -848,5 +848,7 @@ virQEMUCapsGetSEVCapabilities(virQEMUCaps *qemuCaps); bool virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCaps) G_NO_INLINE; =20 +int virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps) G_NO_INLINE; + virArch virQEMUCapsArchFromString(const char *arch); const char *virQEMUCapsArchToString(virArch arch); --=20 2.37.1 From nobody Fri May 17 03:54:46 2024 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 Reviewed-by: Christophe de Dinechin Reviewed-by: J=C3=A1n Tomko Tested-by: Christophe de Dinechin --- 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