From nobody Mon Feb 9 15:46:03 2026 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=1658400379; cv=none; d=zohomail.com; s=zohoarc; b=kkjh5LINGr+QmmmBoKzNhBS84aT1zs8VvOQn28+dp6xwcp+oWbwTBMGjNM+X+HCBWDh5ry9twektojkVnOytUT56hJ5+raViGBFrwgHCdI814YO5tmCA+5EXixANzKARZh3hdS3j37PnGxumWxdtfnGiQR5dG6bpe2bjSCO826M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658400379; 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=dhg8xjXj3pwN4RgpZZO+by5O6w0lK5uvPfv9CoRMx+8=; b=PbX0iUko0ygp5qT9NuRFAZE0yMw7QW4REumKljb06yk1+xRsSc8nNcQRqAjFRzIADBDu+RRS2a/hnVtIOnrUhKLgh4zbW05iBvg50+3HvP4P6y+YXbrReH1I31fUcy1nHUu/qELo93OJm982unI4GvwLmqggYyfYWIFq/qaSXlM= 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 1658400379807850.1464345205171; Thu, 21 Jul 2022 03:46:19 -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-265-t6Yq-vs1MrSjp-Elhv2CHw-1; Thu, 21 Jul 2022 06:46:15 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B71C7804191; Thu, 21 Jul 2022 10:46:12 +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 A57BD492C3B; Thu, 21 Jul 2022 10:46:12 +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 54F2A1947047; Thu, 21 Jul 2022 10:46:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9367A1947043 for ; Thu, 21 Jul 2022 10:46:10 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 5F270400E894; Thu, 21 Jul 2022 10:46:10 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09A8B40CFD0A for ; Thu, 21 Jul 2022 10:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658400378; 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=dhg8xjXj3pwN4RgpZZO+by5O6w0lK5uvPfv9CoRMx+8=; b=MW7hrD8N1hX79dWKoiyIPjfcbbRdFBqlQtpDqddvGS3V9vpdJUKNCLBM8sLyd0xqwijaIg +NnpfkchPuuqkkeoxfjc3sMKQm7EDycY7xLbZiEv/2YHzz5sjsE66LFKpxYgs3v0qdxwNg PJiTpH95ha3a5A5/wa9WlwPwyYwCBIc= X-MC-Unique: t6Yq-vs1MrSjp-Elhv2CHw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Kristina Hanicova To: libvirt-list@redhat.com Subject: [PATCH v2 3/8] domain_capabilities: reformat virDomainCapsCPUCustomFormat() Date: Thu, 21 Jul 2022 12:45:48 +0200 Message-Id: <91022deb3d8feed61ddc5ec03c9ce302541222a4.1658400080.git.khanicov@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 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 2.85 on 10.11.54.9 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) X-ZM-MESSAGEID: 1658400381186100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Kristina Hanicova Reviewed-by: Martin Kletzander --- src/conf/domain_capabilities.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index 6e8f957657..653123f293 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -376,12 +376,14 @@ virDomainCapsCPUCustomFormat(virBuffer *buf, =20 for (i =3D 0; i < custom->nmodels; i++) { virDomainCapsCPUModel *model =3D custom->models + i; + virBufferAsprintf(buf, "usable= )); + if (model->deprecated) virBufferAddLit(buf, " deprecated=3D'yes'"); - virBufferAsprintf(buf, ">%s\n", - model->name); + + virBufferAsprintf(buf, ">%s\n", model->name); } =20 virBufferAdjustIndent(buf, -2); --=20 2.35.3