From nobody Fri Dec 19 16:06:22 2025 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=1679064975; cv=none; d=zohomail.com; s=zohoarc; b=C+1asAsFU5LHDj2wfbENHTL8o6z80ytLyJv564eHQG1q4BihiQ6NqmuwrclFYou0JFo/NVcuMnXjbcS7qYelLXKmJiO88VkLs+CFugbkZqeXO/rnU82CFjZIt/YuHa68aP8exWwao+QjG3V2HF6zHbzzvCYwzU55AfQyC8xn8Ic= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679064975; 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=1JrfH0Nkfc3d9kIL5WXX/mVO2Mo9lyX1CIDg1O+WV74=; b=KKx8bEmrr4kAOqG4fTH621hvjBWgGnRa0Zawa0nDPEJk4f23/kJwp/TkuSR2nkSxLUH1NCu/auuDFxWP6EYGHd3oaeYV8J4Ll9vRqzDzqiNWwI8wPuKrItmIbm749rpl0TEZkSbNEKbcbFzygvlQqfJxFkw7rw4vrJ25SHvnLYI= 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 1679064975260682.5098826910978; Fri, 17 Mar 2023 07:56:15 -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-609-ohhf9ZuEOzq_PQgH6_kXdQ-1; Fri, 17 Mar 2023 10:56:06 -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 6468696DCBF; Fri, 17 Mar 2023 14:55:58 +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 4C0D66B598; Fri, 17 Mar 2023 14:55:58 +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 DCA671946597; Fri, 17 Mar 2023 14:55:57 +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 CBC641946587 for ; Thu, 16 Mar 2023 16:12:34 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B34482166B26; Thu, 16 Mar 2023 16:12:34 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 30ABE2166B29 for ; Thu, 16 Mar 2023 16:12:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679064973; 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=1JrfH0Nkfc3d9kIL5WXX/mVO2Mo9lyX1CIDg1O+WV74=; b=OywAjlP+9JSSjVKpHewuuo5NTsPnlsH70gz1h6E6qgHcOMCR+u3E6rlnj8FwiNMKZesziZ MLmeUxDzzob5kW5dvDwJXlwhREO1osFYiBxgAj2B851yD5kM0RWVb/Sgu8GUmIEOfSCkYk qLJDXWMYa5dPewA6CdjFlYSOBKjQBgs= X-MC-Unique: ohhf9ZuEOzq_PQgH6_kXdQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 16/24] qemucapabilitiestest: Add support for '+hvf' variant Date: Thu, 16 Mar 2023 17:11:45 +0100 Message-Id: <00affd580f1211fb563836b28de60ea3e9afd716.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.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: 1679064976083100001 Content-Type: text/plain; charset="utf-8" We need to signal to the capabilities code that HVF variant is used so that it can behave as if it were running on OSX. Signed-off-by: Peter Krempa --- tests/qemucapabilitiestest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/qemucapabilitiestest.c b/tests/qemucapabilitiestest.c index dcc965130e..be86af3e39 100644 --- a/tests/qemucapabilitiestest.c +++ b/tests/qemucapabilitiestest.c @@ -44,11 +44,12 @@ struct _testQemuData { int ret; }; +bool isHVF =3D false; bool virQEMUCapsProbeHVF(virQEMUCaps *qemuCaps G_GNUC_UNUSED) { - return false; + return isHVF; } @@ -97,6 +98,8 @@ testQemuCaps(const void *opaque) NULL))) return -1; + isHVF =3D STREQ(data->variant, "+hvf"); + if (qemuProcessQMPInitMonitor(qemuMonitorTestGetMonitor(mon)) < 0) return -1; --=20 2.39.2