From nobody Sun Feb 8 17:36:21 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=1641322476; cv=none; d=zohomail.com; s=zohoarc; b=ORSslQjZnWvWft59MRsULJ0DeT+qg2g7xObTXdKXbmcMmcPVVXDyo5sDBxcsBe9lHNpjudX7JSGEJauwBqG710hDAm54PkYkXthXl2kjai9ep3hsQWMgBfpne7UhpG7AvOOvC19qREPbQpmM2SPBSRe66RxQxOvu1blzUyysWNc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641322476; 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=rZUAwNQy5pq3JBRdSH9FitvdFFubOs//srSRkE8Rjcg=; b=TFnhwDwS8kewnhEGa5JEUX4GqIay/MCCUe2sExeBVmQ1UMtoYyD3xKFwD963awnsz6jrmAXFAQD8+m0506KU9ccISAPjcgz+LPe2au35ArH5Z0op9PquNbTogUEqEDI8GytybCEUgMMusyQkR5rf4/WorD76wAKQn02+OxChgHI= 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) 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 1641322476277233.40705257170657; Tue, 4 Jan 2022 10:54:36 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-408-5bG1ioOwPceHjk-Z7Peyww-1; Tue, 04 Jan 2022 13:54:31 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B1FD51054F9F; Tue, 4 Jan 2022 18:54:26 +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 440C77ED85; Tue, 4 Jan 2022 18:54:26 +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 F10F41806D03; Tue, 4 Jan 2022 18:54:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 204IsOIN012942 for ; Tue, 4 Jan 2022 13:54:24 -0500 Received: by smtp.corp.redhat.com (Postfix) id 179CF34D4E; Tue, 4 Jan 2022 18:54:24 +0000 (UTC) Received: from kinshicho.usersys.redhat.com (unknown [10.40.193.201]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F1C9434D41; Tue, 4 Jan 2022 18:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641322475; 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=rZUAwNQy5pq3JBRdSH9FitvdFFubOs//srSRkE8Rjcg=; b=AoROahCDU7fLhI4j5esUd2o8IBbJWILZYaBnqrunCJdkeQQMW7z8dXW0B9hauMJ+LjYmeu 9qVrGp3V5+jbO4iY7MmbM2Lwp7Pw10D9BS9WhWzCJCjTsiqhovbv2zNgVVN59F2GpCTUHl NnPcbUom/Tnp0webmYHiUqwHjHBurQ4= X-MC-Unique: 5bG1ioOwPceHjk-Z7Peyww-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 08/17] qemu: Make error message accel-agnostic Date: Tue, 4 Jan 2022 19:52:47 +0100 Message-Id: <20220104185256.339072-9-abologna@redhat.com> In-Reply-To: <20220104185256.339072-1-abologna@redhat.com> References: <20220104185256.339072-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: r.bolshakov@yadro.com 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.11 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: 1641322478360100001 Content-Type: text/plain; charset="utf-8" From: Roman Bolshakov With more acceleration types, KVM should be used only in error messages related to KVM. Signed-off-by: Roman Bolshakov Signed-off-by: Andrea Bolognani --- src/qemu/qemu_capabilities.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index eac1e65a39..893af0b635 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -5854,8 +5854,8 @@ virQEMUCapsCacheLookupDefault(virFileCache *cache, =20 if (virQEMUCapsTypeIsAccelerated(virttype) && capsType =3D=3D VIR_DOMA= IN_VIRT_QEMU) { virReportError(VIR_ERR_INVALID_ARG, - _("KVM is not supported by '%s' on this host"), - binary); + _("the accel '%s' is not supported by '%s' on this = host"), + virQEMUCapsAccelStr(virttype), binary); return NULL; } =20 --=20 2.31.1