From nobody Thu Dec 18 04:17:12 2025 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=1623227593; cv=none; d=zohomail.com; s=zohoarc; b=B5ZXLTP7kv2zBU0uzH8ruoQaOS4Acw8bPqpdjvkON5cb/kfPXM/Q56ag7loR8pIANp/2ynjMK+ycak09Tj4YMrozPAb7Ti6HSgb6GvSb8+m1YLNH+mnX6906N2/ykwJjNOeN7wtegwYIVQY/njd6Hm82u8y3RVvq+6tqaLHRLw8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623227593; 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=3FMlY6EAuQ50k/gBg+FFCIahUghcBNHnCTjjVixsDR0=; b=OkhbsjuiOFnHx2UUcclHdzs8fcHK5SsSlDkPr2A6TwipjUj/hDtoARUH45pWO/Rk3hUr5NUKSKCc8JNQjq15drk7krxXBU8pU95z8b38lRz6TcS2tWRdHOmfD8Do00PumgE8mLSW69pTi7DLc13xPYdLB+658SUlOfeNHu6DhOc= 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 16232275934551005.3133785693268; Wed, 9 Jun 2021 01:33:13 -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-182-wp9L3NS4MXqB3lyUoLsnww-1; Wed, 09 Jun 2021 04:33:10 -0400 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 11CA9C73BA; Wed, 9 Jun 2021 08:33:04 +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 E4B69138F5; Wed, 9 Jun 2021 08:33:03 +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 977ED1804480; Wed, 9 Jun 2021 08:33:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1598WqBq022968 for ; Wed, 9 Jun 2021 04:32:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id BCE4A6091A; Wed, 9 Jun 2021 08:32:52 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-36.pek2.redhat.com [10.72.12.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 276E860917; Wed, 9 Jun 2021 08:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623227592; 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=3FMlY6EAuQ50k/gBg+FFCIahUghcBNHnCTjjVixsDR0=; b=dlAbG1cejqI3jnLQsbSukTkw1mOaQYibAZPS85ZMuuJLBJVDECti9+boOyeJcvC//QALjb nL6HTd+r/LPqWCnkGaVPZAgbLkCCsNKgRM196ejuNdYubhJgziXrmEgs6mAFxy7fIS79x7 /mnvc9v49A/xDwPTGWSV3cFTPHAlFBY= X-MC-Unique: wp9L3NS4MXqB3lyUoLsnww-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH v2 5/6] qemu: Adapt to virtio-vga-gl device Date: Wed, 9 Jun 2021 16:32:26 +0800 Message-Id: <20210609083227.404563-6-hhan@redhat.com> In-Reply-To: <20210609083227.404563-1-hhan@redhat.com> References: <20210609083227.404563-1-hhan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: Han Han 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 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" QEMU 6.1 will replace the virgl property of virtio-vga device to virtio-vga-gl device. Adapt to that update. Resolves: https://gitlab.com/libvirt/libvirt/-/issues/167 Signed-off-by: Han Han --- src/qemu/qemu_command.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 6b9f13b219..56bc4b87eb 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4239,6 +4239,9 @@ qemuBuildDeviceVideoStr(const virDomainDef *def, } } else { virBufferAsprintf(&buf, "%s", model); + if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_VGA_GL) && + STREQ(model, "virtio-vga")) + virBufferAddLit(&buf, "-gl"); } =20 virBufferAsprintf(&buf, ",id=3D%s", video->info.alias); --=20 2.31.1