From nobody Tue Feb 10 01:59:45 2026 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=1618918159; cv=none; d=zohomail.com; s=zohoarc; b=DsybK9dI0fL8IZnYt4U9sW0gaQWeIwWf6ePuSxQlQjjm5fgoORQ3cdfQ5JttzwpPdD6jXd6D/Wzgy8kY0qmGGiUxq+efYag0RS76RIZvLcSOjW+pbAsZ82bhow7ZOSTXOiH5jxWR/iygLpe2D7ylNMSVGa+ZwOyKPXqCBWKbys0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618918159; h=Content-Type:Content-Transfer-Encoding:Cc: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=6mGb18PifWw722vlxXNctvkT8+Xe8gavqsB725ddqwI=; b=Gyg7oUAedZRcwQpyTH2wDPrVhDf1yquD89/BYG9P+w8gRb+srgBqDCFZqOcpGWgIz5EIygLUnj5iRFO3Ms+F2t0PEgYMPwUchNSWRFQa6dcgGEfLhOKbd+VIcfsHlRRN8Gs1VM0VuN2ooP4XpNAjSiFc4Oa+9NIqpCPxQ5Pd/9w= 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) header.from= 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 1618918159756669.460617332602; Tue, 20 Apr 2021 04:29:19 -0700 (PDT) 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-224-D-w9y0G7NIS0oFOA6lKWsg-1; Tue, 20 Apr 2021 07:28:16 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 92EE9192297D; Tue, 20 Apr 2021 11:28:10 +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 7464D2CC9A; Tue, 20 Apr 2021 11:28:10 +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 2C15285C4; Tue, 20 Apr 2021 11:28:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 13KBS0Hm018475 for ; Tue, 20 Apr 2021 07:28:00 -0400 Received: by smtp.corp.redhat.com (Postfix) id BED1718A60; Tue, 20 Apr 2021 11:28:00 +0000 (UTC) Received: from work.redhat.com (ovpn-115-12.ams2.redhat.com [10.36.115.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 14FF150DDE; Tue, 20 Apr 2021 11:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618918158; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=6mGb18PifWw722vlxXNctvkT8+Xe8gavqsB725ddqwI=; b=Xiywx4DENOXpQ88bj0WrLmD8hIwAsVZ25y3B7UgFUayY+51HIuDcertpHzBmWF4yFBy+x4 JAZdbiFkQBhlXPOXTt9KarBR6QP5BszfqQrBoChopYcg+zY0jQpOWq7CbqBBaz/j6ecKQW Jf/N6cVL9nRhIVHOmhlt8yt/lfp0E1A= X-MC-Unique: D-w9y0G7NIS0oFOA6lKWsg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 3/4] qemu: Introduce virQEMUCapsUpdateHostCPUModel Date: Tue, 20 Apr 2021 13:27:51 +0200 Message-Id: <20210420112752.137256-4-twiederh@redhat.com> In-Reply-To: <20210420112752.137256-1-twiederh@redhat.com> References: <20210420112752.137256-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Function will be used by next patch. Signed-off-by: Tim Wiederhake --- src/qemu/qemu_capabilities.c | 9 +++++++++ src/qemu/qemu_capspriv.h | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 030779902d..7971a9c557 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -3819,6 +3819,15 @@ virQEMUCapsInitHostCPUModel(virQEMUCaps *qemuCaps, } =20 =20 +void +virQEMUCapsUpdateHostCPUModel(virQEMUCaps *qemuCaps, + virArch hostArch, + virDomainVirtType type) +{ + virQEMUCapsHostCPUDataClear(&virQEMUCapsGetAccel(qemuCaps, type)->host= CPU); + virQEMUCapsInitHostCPUModel(qemuCaps, hostArch, type); +} + qemuMonitorCPUModelInfo * virQEMUCapsGetCPUModelInfo(virQEMUCaps *qemuCaps, virDomainVirtType type) diff --git a/src/qemu/qemu_capspriv.h b/src/qemu/qemu_capspriv.h index c50b15f193..a54a22685e 100644 --- a/src/qemu/qemu_capspriv.h +++ b/src/qemu/qemu_capspriv.h @@ -60,6 +60,10 @@ virQEMUCapsInitHostCPUModel(virQEMUCaps *qemuCaps, virArch hostArch, virDomainVirtType type); =20 +void +virQEMUCapsUpdateHostCPUModel(virQEMUCaps *qemuCaps, + virArch hostArch, + virDomainVirtType type); int virQEMUCapsInitCPUModel(virQEMUCaps *qemuCaps, virDomainVirtType type, --=20 2.26.3