From nobody Mon Feb 9 01:47:38 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 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=1573661238; cv=none; d=zoho.com; s=zohoarc; b=iOmn6b4LkXEG1LCym08M72ksMJgtdVK/HYM0kUHzB14LgcdhJDSAvggaIUg0YRYWot1uvNf9HTbZB+CtBUdy4aJNzgFsRTDZLXJqq3AMn4S5ZMzmxMajcGmknqVk5jVP2eTt399uMf4rkR5aFbn8jyWEG8ZCRH7PHALrnncVCPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573661238; 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=PuuTyqV3ZkhI0wfKgCl4xvKj0cS/o0Dg/7J6gmkshzQ=; b=BTXWN97uiB3zailSxXy46Irj6lPTENyz38CBVH9iLgvF7dpk2+hVXc+nC2cpp3hjeg457KKIHzx5kn2kcO9MNV/FWUsKTTCq8lBUUTmI+ioemu+SIDojdpkiPScdyPnECKhXec5bUs5ug1vwu0xmX9BH0bwSOieJ38E26KPZ60Y= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1573661238325808.1686046532295; Wed, 13 Nov 2019 08:07:18 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-139-W8-FBEHcNA2IVfFqJrFasg-1; Wed, 13 Nov 2019 11:05:59 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9CA31107ACCC; Wed, 13 Nov 2019 16:05:51 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6E8CA5E27B; Wed, 13 Nov 2019 16:05:51 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2C5C74E56E; Wed, 13 Nov 2019 16:05:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xADG5hxc019918 for ; Wed, 13 Nov 2019 11:05:43 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3E8651BC76; Wed, 13 Nov 2019 16:05:43 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id BD27E63644 for ; Wed, 13 Nov 2019 16:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573661237; 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=PuuTyqV3ZkhI0wfKgCl4xvKj0cS/o0Dg/7J6gmkshzQ=; b=bpE1H/QhuHrHCvO1ueMvpnPSc6+PJKhLkBcgY1geNtotpQ/57+N2S/ZkQ30daxqGAnq/bl j5U5YRaEreqPoNgZCOFJVxDzQGszbdinIKjGKK9HQUbSaHrtZ9VmNi074ankD1p1MoW5b1 /2advkXSOQSoyM2TtjecPnVrHz2eRw4= From: Peter Krempa To: libvir-list@redhat.com Date: Wed, 13 Nov 2019 17:05:24 +0100 Message-Id: <9cf5835d261e41b44f8f1681d77d44a1a6b6df72.1573661034.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 6/8] qemu: domcaps: Initialize all features X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: W8-FBEHcNA2IVfFqJrFasg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" While the qemu driver currently implements all domain capability features, we should initialize all features using the helper similarly to how we do it in drivers which don't support any. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_capabilities.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index b03abcd0d3..23a358bf91 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -5571,6 +5571,8 @@ virQEMUCapsFillDomainCaps(virCapsPtr caps, virDomainCapsDeviceVideoPtr video =3D &domCaps->video; virDomainCapsDeviceRNGPtr rng =3D &domCaps->rng; + virDomainCapsFeaturesInitUnsupported(domCaps); + domCaps->maxvcpus =3D virQEMUCapsGetMachineMaxCpus(qemuCaps, domCaps->machine); if (domCaps->virttype =3D=3D VIR_DOMAIN_VIRT_KVM) { --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list