From nobody Fri Dec 19 19:13:59 2025 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=1679064942; cv=none; d=zohomail.com; s=zohoarc; b=EAYY7SJA7k+MDIjkTsv+2SE76vnjR3ceDuk7O71IBA7InR+jZWQ9omP827EE7onTCQstxjTBdmbw2V+VmBgH4OGbIc7ZQHyIF+jiP+9z2UrY7Exvs2523nHvdBxZtk2IYuojCVnTqvEYfnFZXkwAGOVLekwu+FtOm1sza3FfLqw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679064942; 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=yUTCQWjHyHBPHQR/LMv3OdbOOCGeuK8Xgea3GRajJ58=; b=h5s2Tpibb0HT4hkXDrow7Pf0k8nR2UBKaX3jw//J75y+US+PDwMi6bz3uCUxUIOzCF4uex3a/sZqV3kglZ3wl+/1YXxDEiziJltv9rdF1+bjmt6fROrD/sm4c2iYmjcy7ytsYF/8lQwkIHOnVTlYeRILMzknyhUJkpgjsS0k1+4= 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 1679064942143806.7376772697751; Fri, 17 Mar 2023 07:55:42 -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-412-kfWfv1KSN6q4YXqdCNxHpA-1; Fri, 17 Mar 2023 10:55:23 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E7D8728082B5; Fri, 17 Mar 2023 14:55:18 +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 D007740C94B1; Fri, 17 Mar 2023 14:55:18 +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 B4A0B1946597; Fri, 17 Mar 2023 14:55:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D27551946587 for ; Thu, 16 Mar 2023 16:12:33 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id C71822166B29; Thu, 16 Mar 2023 16:12:33 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2DC8E2166B26 for ; Thu, 16 Mar 2023 16:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679064941; 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=yUTCQWjHyHBPHQR/LMv3OdbOOCGeuK8Xgea3GRajJ58=; b=g5PWJIANgTh75bR2tdiyXvygtORoVgEodJD0zszLuZ1qGl51oK53FfSsFNfyX15QU4VG9K Q1ntoMCG7Vw17aabmnrxOVRaYHN8wWPZDlQl8Ee332L6lCINWTZIabfnloxvLlbRi2S6q+ W2vIiDOLRNRA3ODxUYD5WQUuZiYFBPw= X-MC-Unique: kfWfv1KSN6q4YXqdCNxHpA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 15/24] tests: Mock virQEMUCapsProbeHVF directly in qemucapabilitiestest Date: Thu, 16 Mar 2023 17:11:44 +0100 Message-Id: <715801c5b7c86a353a4bce30f21a28e2fe4bbecf.1678982996.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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 3.1 on 10.11.54.2 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: 1679064943914100001 Content-Type: text/plain; charset="utf-8" It needs to be mocked only for 'qemucapabilitiestest'. Additionally moving it here will allow to control the return value based on the test data which will be required for testing dumps from HVF accelerated qemu. Signed-off-by: Peter Krempa --- tests/domaincapsmock.c | 6 ------ tests/qemucapabilitiestest.c | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/domaincapsmock.c b/tests/domaincapsmock.c index 8f27eeb3a1..d382d06e27 100644 --- a/tests/domaincapsmock.c +++ b/tests/domaincapsmock.c @@ -51,12 +51,6 @@ virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCa= ps) return real_virQEMUCapsGetKVMSupportsSecureGuest(qemuCaps); } - -bool -virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps G_GNUC_UNUSED) -{ - return false; -} #endif int diff --git a/tests/qemucapabilitiestest.c b/tests/qemucapabilitiestest.c index 7575f9fd44..dcc965130e 100644 --- a/tests/qemucapabilitiestest.c +++ b/tests/qemucapabilitiestest.c @@ -45,6 +45,13 @@ struct _testQemuData { }; +bool +virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps G_GNUC_UNUSED) +{ + return false; +} + + static int testQemuDataInit(testQemuData *data) { --=20 2.39.2