From nobody Mon Feb 9 00:38:52 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=1572960671; cv=none; d=zoho.com; s=zohoarc; b=CVOhj8myPAzepA57LkxxNQKfmlpEVAhAfFwwvKWPp9D5E6FlIQLYBrNCEygw6d4sab4QT2O9UfbWPEr4rksrMbDYL4HzfdTSt+2OrSwXjbulHycgfsBkc4XSNt9Nfdpfc7YnIo1zaWYoBiKGroM6+TWBLLelokaeQ2D6+C+rXMI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1572960671; 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=7Jv0WLlwrrPkY2JuhvJr/yxIjFB0jTCGebQd9qD1ql4=; b=Mm90IZE7Nc2z49cQoWm9vPK8cZW3NRtqQRHDIZzPbxvYqgh+j0OTRSMfYRvI0eq/sgQqL624DKgGepUhyZQY9+Ni2KxLIejfWx4jBatRwDvKgm8vT2J2A1sJWeVCa/+YqGA80aR3V6yLQeqfyLvL6mSqbGdOFNCGlSCT78wFCjA= 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 1572960671699965.4986527155995; Tue, 5 Nov 2019 05:31:11 -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-286-9jRy8VW4N_icweI6KjLjJg-1; Tue, 05 Nov 2019 08:29:28 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2D3D01005511; Tue, 5 Nov 2019 13:29:24 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EE15A61069; Tue, 5 Nov 2019 13:29:23 +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 997DF180203C; Tue, 5 Nov 2019 13:29:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xA5DS36Q004133 for ; Tue, 5 Nov 2019 08:28:03 -0500 Received: by smtp.corp.redhat.com (Postfix) id 904FD5D9C9; Tue, 5 Nov 2019 13:28:03 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.188]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6571F5DA2C for ; Tue, 5 Nov 2019 13:28:00 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id C57A3105D74; Tue, 5 Nov 2019 14:27:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572960670; 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=7Jv0WLlwrrPkY2JuhvJr/yxIjFB0jTCGebQd9qD1ql4=; b=TsrYxEG+mBMic8qg60nix87V1vLT+fxrbC2ewD4EOmWgm+qq4+NFQqeeLydk1ojaqQKF8O QVX12E08UPQLboG189FPwCu6sDcanYXoxreQABfcPsbMg3hJArZhdCupHPluMnye7m7nFw uIXKwU54W6ncHaoRYgcrJWtYnVKCcqI= From: Jiri Denemark To: libvir-list@redhat.com Date: Tue, 5 Nov 2019 14:27:24 +0100 Message-Id: <3c78525019f6b1d375870d3ebc11b96dab40a728.1572958254.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v3 26/52] qemu: Introduce virQEMUCapsAccelClear 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.12 X-MC-Unique: 9jRy8VW4N_icweI6KjLjJg-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" Signed-off-by: Jiri Denemark Reviewed-by: J=C3=A1n Tomko --- Notes: Version 3: - new patch src/qemu/qemu_capabilities.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 92041190eb..a0b5047276 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -1674,6 +1674,14 @@ virQEMUCapsPtr virQEMUCapsNewCopy(virQEMUCapsPtr qem= uCaps) } =20 =20 +static void +virQEMUCapsAccelClear(virQEMUCapsAccelPtr caps) +{ + virQEMUCapsHostCPUDataClear(&caps->hostCPU); + virObjectUnref(caps->cpuModels); +} + + void virQEMUCapsDispose(void *obj) { virQEMUCapsPtr qemuCaps =3D obj; @@ -1686,9 +1694,6 @@ void virQEMUCapsDispose(void *obj) VIR_FREE(qemuCaps->machineTypes); =20 virHashFree(qemuCaps->domCapsCache); - virObjectUnref(qemuCaps->kvm.cpuModels); - virObjectUnref(qemuCaps->tcg.cpuModels); - virBitmapFree(qemuCaps->flags); =20 VIR_FREE(qemuCaps->package); @@ -1699,8 +1704,8 @@ void virQEMUCapsDispose(void *obj) =20 virSEVCapabilitiesFree(qemuCaps->sevCapabilities); =20 - virQEMUCapsHostCPUDataClear(&qemuCaps->kvm.hostCPU); - virQEMUCapsHostCPUDataClear(&qemuCaps->tcg.hostCPU); + virQEMUCapsAccelClear(&qemuCaps->kvm); + virQEMUCapsAccelClear(&qemuCaps->tcg); } =20 void --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list