From nobody Wed Oct 22 12:30:42 2025 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=1759930412; cv=none; d=zohomail.com; s=zohoarc; b=TjtB4yxV4B/VneLBUEXuwadHsQHLTF5qbuMU+8OAHhkc5gZEL0Z4UHm7ejq0tWf15iCqEjrDN95rPiWGIWXNQ9L28Ho+Xdtzoae+TnC87WT+hHc5i647wbTQvMD1m/O3soEs6dzCcSgE8uSsL39q8VAT/U71BoDdpfMbBfCgYSo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759930412; 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=NbUbjSmR0WENpZGbDvvdg1NV8UJYyDRgcyUTwo9lJY8=; b=I8CMnvmAFfm8nPRf+vngWc+5p0eEmI48SI+1mCI3MazFI7lpuNL8M3BvzHyE2OlDPCBt73Zh6UBBIzl+SQFTh9M7xWQxIt/yRHUxjX0i64vxilYBNTBxw0uiH96br384GVpI6rZr6Riph8N4I6+CqnPW//K/ZUrwRtJMTRqw5PY= 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 1759930412213706.6495707187023; Wed, 8 Oct 2025 06:33:32 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 7F5D6418DA; Wed, 8 Oct 2025 09:33:30 -0400 (EDT) Received: from [172.19.199.17] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id BF6C64429F; Wed, 8 Oct 2025 09:18:34 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 69232441B6; Wed, 8 Oct 2025 08:55:48 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 375C8442F4 for ; Wed, 8 Oct 2025 08:54:38 -0400 (EDT) Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-280-ktjp3jBYNiitcXLzaZWs9w-1; Wed, 08 Oct 2025 08:54:36 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EE44D1800576 for ; Wed, 8 Oct 2025 12:54:35 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.3.236]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 446F819560A2 for ; Wed, 8 Oct 2025 12:54:35 +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=-3.1 required=5.0 tests=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=1759928077; 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=NbUbjSmR0WENpZGbDvvdg1NV8UJYyDRgcyUTwo9lJY8=; b=V76PhH/H15apZTnfmcrLXfl7ijeEojAalEzIEFECc2DMLk8B1SN3kpOOlntkzeMplxZyB6 E8w5sn5IpLNyA3m5mVVZpAg+8n7kBOam0si8qafq61ZfxEMLObhYqZtSxeQvqCmvHxkDbc 8aUC0TffG0Uws1PDj5jgn18KEXXqT90= X-MC-Unique: ktjp3jBYNiitcXLzaZWs9w-1 X-Mimecast-MFC-AGG-ID: ktjp3jBYNiitcXLzaZWs9w_1759928076 To: devel@lists.libvirt.org Subject: [PATCH v2 26/29] qemu_caps: Introduce virQEMUCapsGetHypervCapabilities() Date: Wed, 8 Oct 2025 14:53:58 +0200 Message-ID: <611b1fbf747e3f4cd899d4517155401521c7f381.1759927755.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 1cDZTww3fD68-Hie5VoYQZmxzCsVLhbYH4T_HQk3ZHM_1759928076 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: YTMGVH7SYFF5GNFQEHNLGWROEYH77NY4 X-Message-ID-Hash: YTMGVH7SYFF5GNFQEHNLGWROEYH77NY4 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: 1759930415422154100 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik We'll need to access hypervCapabilities memeber later on. Introduce a getter function. Signed-off-by: Michal Privoznik --- src/qemu/qemu_capabilities.c | 7 +++++++ src/qemu/qemu_capabilities.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 2f4664fce3..83946123be 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2710,6 +2710,13 @@ virQEMUCapsGetSGXCapabilities(virQEMUCaps *qemuCaps) } =20 =20 +virDomainCapsFeatureHyperv * +virQEMUCapsGetHypervCapabilities(virQEMUCaps *qemuCaps) +{ + return qemuCaps->hypervCapabilities; +} + + static int virQEMUCapsProbeQMPObjectTypes(virQEMUCaps *qemuCaps, qemuMonitor *mon) diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index c71fc19a03..2b454e0352 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -957,6 +957,9 @@ virQEMUCapsGetSEVCapabilities(virQEMUCaps *qemuCaps); virSGXCapability * virQEMUCapsGetSGXCapabilities(virQEMUCaps *qemuCaps); =20 +virDomainCapsFeatureHyperv * +virQEMUCapsGetHypervCapabilities(virQEMUCaps *qemuCaps); + bool virQEMUCapsGetKVMSupportsSecureGuest(virQEMUCaps *qemuCaps) ATTRIBUTE_MOCK= ABLE; =20 --=20 2.49.1