From nobody Sat May 4 00:51:39 2024 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=1623227573; cv=none; d=zohomail.com; s=zohoarc; b=HMemn/N9H/PdT3HpX6M1i3oK8ZHJ0q9OVCWyQsn5Q+eYZUPB2KcpyDXiIqeyIWzr0MklSIVr7h9trAFNGjmFD06Rv/WwYBqAKQTG1WCzMR9RH8TtlB7DsJmmVIb+wvtwPBRzHRFF/4fh/91Zd7ZF4yym3W4D5wQNdfiaHmiy2YE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623227573; 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=i4G6qfRCBeT6YuAl/2i7TjyaX2j28GCtklSvtlLsQJs=; b=Je2JBQu72oj9OeH5WLDWFy+a0h60nYHhHr5O+clXNkIprYzv8sT/fglJccqY01dMxKo0N8Uu/iKqi1PWAM7ks7NazO8+aP0M2VjuthhbwkwNt7WxBPb5OX2UgibJ4FsxOwhR5758kfIPaHnOs8bJhJc4E0PQIU4xx2kFOa64UdU= 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 1623227573460922.2045257060126; Wed, 9 Jun 2021 01:32:53 -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-146-GnJeCb4uNfWPiuRrkmm0RA-1; Wed, 09 Jun 2021 04:32:50 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0E44618D6A40; Wed, 9 Jun 2021 08:32:46 +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 6F39910016F4; Wed, 9 Jun 2021 08:32:45 +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 1AB5846F80; Wed, 9 Jun 2021 08:32:43 +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 1598Wg1Z022920 for ; Wed, 9 Jun 2021 04:32:42 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3715460918; Wed, 9 Jun 2021 08:32:42 +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 B707560917; Wed, 9 Jun 2021 08:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623227572; 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=i4G6qfRCBeT6YuAl/2i7TjyaX2j28GCtklSvtlLsQJs=; b=eZt+c0g8j2FSUgvLMafI+6eG8d5kEKSu7sJkm3bXxb9AOl65QR1LKV/IaE1Rzo53j65q06 3itvUWK5Q1wS5pEpyOKKzOtvG4ICJUZpqM+UczeE2kIGyrXpimth9t7fFKbfrIES3OW/Pu a8+dE7rLq4dqM/C06NmjV7fvzWdhG+4= X-MC-Unique: GnJeCb4uNfWPiuRrkmm0RA-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH v2 1/6] qemu_capabilities: Add QEMU_CAPS_VIRTIO_GPU_GL_PCI Date: Wed, 9 Jun 2021 16:32:22 +0800 Message-Id: <20210609083227.404563-2-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.84 on 10.5.11.22 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" This flag will be used for the device virtio-gpu-gl-pci which is introduced since QEMU 6.1. Signed-off-by: Han Han Reviewed-by: Michal Privoznik --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml | 1 + 3 files changed, 4 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 75dd01f06e..6df1b89aa0 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -630,6 +630,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "compat-deprecated", "acpi-index", "input-linux", + "virtio-gpu-gl-pci", ); =20 =20 @@ -1349,6 +1350,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[= ] =3D { { "virtio-pmem-pci", QEMU_CAPS_DEVICE_VIRTIO_PMEM_PCI }, { "vhost-user-blk", QEMU_CAPS_DEVICE_VHOST_USER_BLK }, { "input-linux", QEMU_CAPS_INPUT_LINUX }, + { "virtio-gpu-gl-pci", QEMU_CAPS_VIRTIO_GPU_GL_PCI }, }; =20 =20 diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 94f2fad05a..d6430babce 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -610,6 +610,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ QEMU_CAPS_COMPAT_DEPRECATED, /* -compat deprecated-(input|output) is s= upported */ QEMU_CAPS_ACPI_INDEX, /* PCI device 'acpi-index' property */ QEMU_CAPS_INPUT_LINUX, /* -object input-linux */ + QEMU_CAPS_VIRTIO_GPU_GL_PCI, /* -device virtio-gpu-gl-pci */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; diff --git a/tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_6.1.0.x86_64.xml index 4df3200219..56d8534f7f 100644 --- a/tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml @@ -254,6 +254,7 @@ + 6000050 0 43100243 --=20 2.31.1 From nobody Sat May 4 00:51:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1623227589; cv=none; d=zohomail.com; s=zohoarc; b=KNzHm313Qv1T1yf5NjcxCl+Fv8WGdCDhlR9uZk+nXt2qqnY4WWFAbxlOK2Zzesoh7a04bATSeuj0rJjgLzDTD1SXE473/E9TAbdDroEaz47r8LbhE7On/pQVbIgfXXQwG/yP+KPemfH2La/XdFwId2bAewULOuG1bJcejuxd7eM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623227589; 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=nNL7DZwpZb7zrGejRJQIHT5XuUF6xgak3fatOHV8/wc=; b=KRKzvXPnD74txz9860XA0TQzL5JLxgn4VzxICrgOfCGFGp0Q5RPL/o5TI96ldCah3oL/Yxfv+Hatq5lIVJKllYWt6UmMd4waS7+QAZpPOZMMIm8XeyddcVIb6VJ7V9y8zfDK/R32md5KC1P6Nj4OvfgNNwgpeHD8h3WuYrWQjYY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 16232275893731017.2616502020996; Wed, 9 Jun 2021 01:33:09 -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-193-AUXp9caAN12NkSsvLyfrIw-1; Wed, 09 Jun 2021 04:33:06 -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 EBFF718D6A2E; Wed, 9 Jun 2021 08:33:00 +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 B40555D75A; Wed, 9 Jun 2021 08:33:00 +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 728C418033F6; Wed, 9 Jun 2021 08:33:00 +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 1598Wk6U022933 for ; Wed, 9 Jun 2021 04:32:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id DD78360918; Wed, 9 Jun 2021 08:32:46 +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 BC38660917; Wed, 9 Jun 2021 08:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623227588; 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=nNL7DZwpZb7zrGejRJQIHT5XuUF6xgak3fatOHV8/wc=; b=MRT71B1CU1VIyXd4zzYJf2RfvA4UwLXB5GX4DvG9wjMWmRajr7G7sPIyjg4bwu7w7R2FHU 5UWBDpXjOguyqNB1RlolnJeTZ6Y/W2OHv6BqU3vXTASVH7xuCAlNpKb9sOfudgeWzI53RD oHTlUFtTb/xWAAQon6EkNot/r/FlYxY= X-MC-Unique: AUXp9caAN12NkSsvLyfrIw-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH v2 2/6] qemu_capabilities: Add QEMU_CAPS_VIRTIO_VGA_GL Date: Wed, 9 Jun 2021 16:32:23 +0800 Message-Id: <20210609083227.404563-3-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.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" It will be used for virtio-vga-gl device later. Signed-off-by: Han Han Reviewed-by: Michal Privoznik --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml | 1 + 3 files changed, 4 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 6df1b89aa0..2b9ab9af60 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -631,6 +631,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "acpi-index", "input-linux", "virtio-gpu-gl-pci", + "virtio-vga-gl", ); =20 =20 @@ -1351,6 +1352,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[= ] =3D { { "vhost-user-blk", QEMU_CAPS_DEVICE_VHOST_USER_BLK }, { "input-linux", QEMU_CAPS_INPUT_LINUX }, { "virtio-gpu-gl-pci", QEMU_CAPS_VIRTIO_GPU_GL_PCI }, + { "virtio-vga-gl", QEMU_CAPS_VIRTIO_VGA_GL }, }; =20 =20 diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index d6430babce..eac3e099b1 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -611,6 +611,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ QEMU_CAPS_ACPI_INDEX, /* PCI device 'acpi-index' property */ QEMU_CAPS_INPUT_LINUX, /* -object input-linux */ QEMU_CAPS_VIRTIO_GPU_GL_PCI, /* -device virtio-gpu-gl-pci */ + QEMU_CAPS_VIRTIO_VGA_GL, /* -device virtio-vga-gl */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; diff --git a/tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml b/tests/qemuc= apabilitiesdata/caps_6.1.0.x86_64.xml index 56d8534f7f..695492d566 100644 --- a/tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml @@ -255,6 +255,7 @@ + 6000050 0 43100243 --=20 2.31.1 From nobody Sat May 4 00:51:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1623227579; cv=none; d=zohomail.com; s=zohoarc; b=jh1G+goxMW91o+ATv/9DAccGm7H6wcn3pvc+bPQSjBIu0ZWIInTMelCL9VVnSkxdWLHMKk+pXyA7rJwqIEN+IEKNnvb82K5rKc3FddbxiuGGcfNWWIemMRdJ7ecqgQlet78dsZjinT6luAs/YMQhsQwOHDKnEUYnkngQ1vWvsxM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623227579; 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=9R6SvtOpBZWgf7Qa1D1Ot8H4l7GbQMCnxcN4HSYdlko=; b=DvUXSzH+gimItTuB8qYwgK+pQ1YDmy7Shqmz16BoYFNajmr2xZ0FBajhhES+lbiB1vzL5+P9fbrO+VXUqaIuhMq0OWKq8pERUPYsdubA+NY+oXgYTdCuc6ueA0IJscVl34K04y1baPSHfGJQd6VnWHVcSSUKSWwM4DZtHOaWpDk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1623227579201727.9593314132944; Wed, 9 Jun 2021 01:32:59 -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-39-oo_GbZV2MBmVXpgKlJMJvQ-1; Wed, 09 Jun 2021 04:32:56 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DDD2580ED8B; Wed, 9 Jun 2021 08:32:50 +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 BDC2D60853; Wed, 9 Jun 2021 08:32:50 +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 846A31801266; Wed, 9 Jun 2021 08:32:50 +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 1598WmOL022944 for ; Wed, 9 Jun 2021 04:32:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id B90FC60917; Wed, 9 Jun 2021 08:32:48 +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 6E3A260853; Wed, 9 Jun 2021 08:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623227578; 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=9R6SvtOpBZWgf7Qa1D1Ot8H4l7GbQMCnxcN4HSYdlko=; b=LaQutrSxHNtkh1zATa2ZZiN7jY5qCeRZl3vCYtCQDW8rLeWYSM7kQ4cWHXJHhtXniRv7zt PVjGUymM1GTi6Cyk7LZygSqoWYkT8EmfFs7VRhzlJtUlQiIooqw0YKMFF342iFZnyiU+tQ 0Q2qBMg96oAG4bQk5K88Jj8f/GZKens= X-MC-Unique: oo_GbZV2MBmVXpgKlJMJvQ-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH v2 3/6] qemu_validate: Validate virtio*gl* devices for 3d accerlation Date: Wed, 9 Jun 2021 16:32:24 +0800 Message-Id: <20210609083227.404563-4-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.13 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" The devices virtio-gpu-gl-pci and virtio-vga-gl, aimed to replace the virgl property, are valid for 3d accerlation as well. Signed-off-by: Han Han Reviewed-by: Michal Privoznik --- src/qemu/qemu_validate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 669c45b3c5..75e3db6ca9 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -2364,7 +2364,9 @@ qemuValidateDomainDeviceDefVideo(const virDomainVideo= Def *video, } else if (video->accel) { if (video->accel->accel3d =3D=3D VIR_TRISTATE_SWITCH_ON && (video->type !=3D VIR_DOMAIN_VIDEO_TYPE_VIRTIO || - !virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_GPU_VIRGL))) { + !(virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_GPU_VIRGL) || + virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_GPU_GL_PCI) || + virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_VGA_GL)))) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("%s 3d acceleration is not supported"), virDomainVideoTypeToString(video->type)); --=20 2.31.1 From nobody Sat May 4 00:51:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1623227589; cv=none; d=zohomail.com; s=zohoarc; b=MPoOTpDe+g1E/vVckq0TRf6NpUK3KL49T9Zmf3lirS6e1f5/sUhYjW6BL4ywoh5YIUetNDKea5kG+8Z1A5cQO+IJ9YDHaZlPwx2GK/8gpGMGolU9mfVM03u621omrgZzwV/HFNYxo9g2BjJb1L8LR+RKC3hW4f5UxlR0k28cvfU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623227589; 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=qyQQ3Ied+cuG9I+jQxvcFTkYW/vbIhlRNZ//rhuiRU0=; b=jFJDgUDROCaPdUbupspXoa+dtWW55c57P6vtR3U8czeYzL5pUShvc36aAU58ss337hs8q3V3r8GaJ/uhVD/Vu0egsK+476zFUxnFTw0v6+KW18wOzZlvF9baOuNoe5p9II7c5TnXhs21Ovka39coA2rVr8Mo+KkHDfbVqA4i9Zc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1623227589279516.4778346687881; Wed, 9 Jun 2021 01:33:09 -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-27-Tni6TLHgNICTbdJnMGnsfg-1; Wed, 09 Jun 2021 04:33:06 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C9B6A80ED99; Wed, 9 Jun 2021 08:33:00 +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 9D7381001281; Wed, 9 Jun 2021 08:33:00 +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 664F946F59; Wed, 9 Jun 2021 08:33:00 +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 1598WoJO022956 for ; Wed, 9 Jun 2021 04:32:50 -0400 Received: by smtp.corp.redhat.com (Postfix) id 877DD60917; Wed, 9 Jun 2021 08:32:50 +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 566C360853; Wed, 9 Jun 2021 08:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623227588; 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=qyQQ3Ied+cuG9I+jQxvcFTkYW/vbIhlRNZ//rhuiRU0=; b=ht5nxLiKzZRn/EIDsTD1fNfr8jhCS8urRlaXCD7/seaWZYy3mkhyqxxQ8TmZK/weV28f6+ 2+yVCO/tLSeXLmQmQVhfrDjGiAi6lFzaSpmexvEGQBtAQ9ypIoEOjHYyG837boTiUvJtjG kFwA+sVytFLlS+WNTinYWYkJqdEOMqU= X-MC-Unique: Tni6TLHgNICTbdJnMGnsfg-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH v2 4/6] qemu: Adapt to virtio-gpu-gl-pci device Date: Wed, 9 Jun 2021 16:32:25 +0800 Message-Id: <20210609083227.404563-5-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.84 on 10.5.11.22 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 add virtio-gpu-gl-pci device to replace the virgl property of virtio-gpu-pci device. Adapt to that change. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=3D1967356 Signed-off-by: Han Han Reviewed-by: Michal Privoznik --- src/qemu/qemu_command.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 7834fc2130..6b9f13b219 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4228,6 +4228,11 @@ qemuBuildDeviceVideoStr(const virDomainDef *def, } =20 if (STREQ(model, "virtio-gpu") || STREQ(model, "vhost-user-gpu")) { + if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_GPU_GL_PCI) && + (video->accel->accel3d =3D=3D VIR_TRISTATE_SWITCH_ON) && + STREQ(model, "virtio-gpu")) + model =3D "virtio-gpu-gl"; + if (qemuBuildVirtioDevStr(&buf, model, qemuCaps, VIR_DOMAIN_DEVICE_VIDEO, video) < 0) { return NULL; --=20 2.31.1 From nobody Sat May 4 00:51:39 2024 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 Reviewed-by: Michal Privoznik --- 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 From nobody Sat May 4 00:51:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1623227592; cv=none; d=zohomail.com; s=zohoarc; b=cmeCN7+5GT7QBqQ2DEdORoIElwXDlGlY5nJzP2Ii3Ef6oBYHnkJMLhM0YLdh23nqoJX5KthoeBxq1x84xMQfPjsyu/8i6yS3Xt/9UzxGDTJL+nPCOgGPFfixRHhpOAcYmWMDfDZomB2a6Z7OVgvWu0jDGojFeWiNJpB4AdZy8Mk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623227592; 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=V/8M/4lbe+Eu7+Gr5+zDvEpeEU1Q5P5eY3alALqRtoo=; b=Zw+pY+aSeZUbzLliBx1ybjEujjviNbJ5Ypz1WcQjQxyT2phDYONeDTHHO/uQk8P+ZpEPTiHXa8TPXFmMoCMqqaZg//2RrftfIAfOYPikNCOElWOBuFtWV3wGKE4MJ562yMrBUWYxTavIdT8ptRaLyjul7ZmicffufFWPQrQUC50= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1623227592897231.41722464466227; Wed, 9 Jun 2021 01:33:12 -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-553-TGlz5l4IMbaw6qoktBsxOg-1; Wed, 09 Jun 2021 04:33:10 -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 660668015C6; 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 34AD85D719; Wed, 9 Jun 2021 08:33:04 +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 E695E1801268; 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 1598WwZ3022982 for ; Wed, 9 Jun 2021 04:32:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id 20B1160C16; Wed, 9 Jun 2021 08:32:58 +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 D5E606060F; Wed, 9 Jun 2021 08:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623227591; 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=V/8M/4lbe+Eu7+Gr5+zDvEpeEU1Q5P5eY3alALqRtoo=; b=XIxSLHGbYHDMifFzfDATnBI0IarCbDOBqBHa48DDob8q+R8Z2sYdccNehc4fo+Oo2YmecL D6ZtAU3SmXPhjbsVEXs8P9St1j1gJ7YkFcJZmXBFh+P5hcI71aJDosL64qNvOFEt/7ZtBJ XhhY6izDS67SqUcfR7HMsLA68bBkYo8= X-MC-Unique: TGlz5l4IMbaw6qoktBsxOg-1 From: Han Han To: libvir-list@redhat.com Subject: [PATCH v2 6/6] tests: Tests for virtio-vga-gl and virtio-gpu-gl-pci device Date: Wed, 9 Jun 2021 16:32:27 +0800 Message-Id: <20210609083227.404563-7-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.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" Signed-off-by: Han Han Reviewed-by: Michal Privoznik --- ...video-virtio-vga-gpu-gl.x86_64-latest.args | 35 ++++++++++++++ .../video-virtio-vga-gpu-gl.xml | 46 +++++++++++++++++++ tests/qemuxml2argvtest.c | 1 + .../video-virtio-vga-gpu-gl.x86_64-latest.xml | 1 + tests/qemuxml2xmltest.c | 1 + 5 files changed, 84 insertions(+) create mode 100644 tests/qemuxml2argvdata/video-virtio-vga-gpu-gl.x86_64-l= atest.args create mode 100644 tests/qemuxml2argvdata/video-virtio-vga-gpu-gl.xml create mode 120000 tests/qemuxml2xmloutdata/video-virtio-vga-gpu-gl.x86_64= -latest.xml diff --git a/tests/qemuxml2argvdata/video-virtio-vga-gpu-gl.x86_64-latest.a= rgs b/tests/qemuxml2argvdata/video-virtio-vga-gpu-gl.x86_64-latest.args new file mode 100644 index 0000000000..d38082410f --- /dev/null +++ b/tests/qemuxml2argvdata/video-virtio-vga-gpu-gl.x86_64-latest.args @@ -0,0 +1,35 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-QEMUGuest1 \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-QEMUGuest1/.config \ +/usr/bin/qemu-system-x86_64 \ +-name guest=3DQEMUGuest1,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine pc,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dp= c.ram \ +-cpu qemu64 \ +-m 1024 \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":1073741824}= ' \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-no-acpi \ +-boot strict=3Don \ +-device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 \ +-audiodev id=3Daudio1,driver=3Dnone \ +-device virtio-vga-gl,id=3Dvideo0,max_outputs=3D1,bus=3Dpci.0,addr=3D0x2 \ +-device virtio-gpu-gl-pci,id=3Dvideo1,max_outputs=3D1,bus=3Dpci.0,addr=3D0= x4 \ +-device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x3 \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/video-virtio-vga-gpu-gl.xml b/tests/qem= uxml2argvdata/video-virtio-vga-gpu-gl.xml new file mode 100644 index 0000000000..991141c643 --- /dev/null +++ b/tests/qemuxml2argvdata/video-virtio-vga-gpu-gl.xml @@ -0,0 +1,46 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 1048576 + 1048576 + 1 + + hvm + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + +
+ + + + +