From nobody Tue Nov 26 19:44:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1567201480; cv=none; d=zoho.com; s=zohoarc; b=W1PkkGNL54sFM8FyjH84TzOSfOL/jcAGOjP6JHlOoR2BxKuTBcJeIoggM2hBEEy+fw3ld2p7D9HxGs3Z1399JjiCAgV3MiDh/RvCmHyfkUMhKIy76UZ7mN3wn783R049FBFbXIlnk/BX3GuJZzrp8oXGnF9aWmWb4jJjlam3RsA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567201480; 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:ARC-Authentication-Results; bh=t0oT7ie8wjzVIiC2zgNp4iOVZ7nvBpIEJG0VmrJhxoY=; b=XE//Cjf/kvLVKgIB/hcXSS5d6fQwBGSOY4euuJIt3SXjqJn0/hMrE/TtOPTwGWfReFz4J3ZlRnE5wVlZtmw6033x7JhvhcZnwjjq8Kxfbh9V3AnCF6ZV3Y36oyiKcxztwb5mHJ1umsTkF6UWjHG9Iz1YY2YkTvPFfVbvi32ujRM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1567201480260818.5436452746304; Fri, 30 Aug 2019 14:44:40 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id 21075317528A; Fri, 30 Aug 2019 21:44:39 +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 E714760606; Fri, 30 Aug 2019 21:44:38 +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 AFB4E1806B01; Fri, 30 Aug 2019 21:44:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7ULhkpm005556 for ; Fri, 30 Aug 2019 17:43:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id 081CE5C221; Fri, 30 Aug 2019 21:43:46 +0000 (UTC) Received: from mx1.redhat.com (ext-mx29.extmail.prod.ext.phx2.redhat.com [10.5.110.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 034185C207 for ; Fri, 30 Aug 2019 21:43:43 +0000 (UTC) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1470C18B20E8 for ; Fri, 30 Aug 2019 21:43:43 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id m10so7524872qkk.1 for ; Fri, 30 Aug 2019 14:43:43 -0700 (PDT) Received: from localhost.localdomain ([191.17.58.35]) by smtp.gmail.com with ESMTPSA id y25sm2970689qtf.83.2019.08.30.14.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 14:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4927VCzMi32mhDxPO703rQSHal119WGP4uGdwrmf84o=; b=uWadPFWGgt3GP12Yf76kMkUqbccmm9ON4FSbkgbb6WbIUXUM47Adtg27DLYwqqzZtI k83JbNYHNJH3FK5VF2TwWyycd4JVfmYf+GvO5ygdOn4Q/b+tothBJx+umbo9LuE+Ojla iwkhPJDQOkADQBcnR9k+dx3rI2A1fldpr3vMtgYZ8Al/gwC8OyvDhop+cidv3p6W1kRB AD8igeVYG4i/X9PoF+CpQDjoB0jAXm5i5xN/a3OsPrszRFVUUBu61SxMyNgtRUBobafD m8M1wj+8y3yhDWaEKvnaEhT+9nK5+I9qHss2tF4ktbiYp9E/snwH9NtbVpc8uBAMRoat uPVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4927VCzMi32mhDxPO703rQSHal119WGP4uGdwrmf84o=; b=avmUnnOM7jfraf4shIXN+YrSAlXPUir1ubjDXd0iX1/oDXTKg6j9AgpFj2rzyPXuKG rFBjTNMgZLBKC6zOCgZquyPy8Qa8miRszvi7Y1rQ+IXiz5wJYpq9Vo6gwG0kaCHQISOT p9mt78wAeJJyk/fVtr9s41NDo0T4P9N6VqgxEnlzuaeGzmhjZcu8iHHfeYKMtgm/ItmK MYU8i2RCi0239xuEGFbY5C4vr1oWagPDWksLloN/8Yu4O0yzyvngVx3lHO5QKAEWWVyU G1mx//XXDvOQ4axWRcwyivE1yxOfPuecnIqTG1WKYRErcu+NS37lYmTWsb2nLgUK9Zpd LI5g== X-Gm-Message-State: APjAAAXYBJyGU0zEw4/Bz78FJNyxEc9lFG7YGBAe40lolWeNBiy2ZBNn PK0sNa8NgXTDhw8MZddMmnFY5KVX X-Google-Smtp-Source: APXvYqypKYnleM8pJM2MANr/inzzIkauBuJhWdPYuULq2AEO+VfR2H0AJP88s20xPJlUSnEOoxrLJg== X-Received: by 2002:ae9:e102:: with SMTP id g2mr17434778qkm.182.1567201422093; Fri, 30 Aug 2019 14:43:42 -0700 (PDT) From: jcfaracco@gmail.com To: libvir-list@redhat.com Date: Fri, 30 Aug 2019 18:40:54 -0300 Message-Id: <20190830214101.8759-3-jcfaracco@gmail.com> In-Reply-To: <20190830214101.8759-1-jcfaracco@gmail.com> References: <20190830214101.8759-1-jcfaracco@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.70]); Fri, 30 Aug 2019 21:43:43 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.70]); Fri, 30 Aug 2019 21:43:43 +0000 (UTC) for IP:'209.85.222.193' DOMAIN:'mail-qk1-f193.google.com' HELO:'mail-qk1-f193.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.1 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.222.193 mail-qk1-f193.google.com 209.85.222.193 mail-qk1-f193.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.70 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Julio Faracco Subject: [libvirt] [PATCH v2 02/10] qemu: Include {xres, yres} QEMU capabilities for video models 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Fri, 30 Aug 2019 21:44:39 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Julio Faracco New QEMU capabilities for display resolution were added: xres and yres. Some models supports like VGA, QXL, Virtio and Bochs support set resolution for driver. The capabilities mentioned above were added into those models. Signed-off-by: Julio Faracco --- src/qemu/qemu_capabilities.c | 16 ++++++++++++++++ src/qemu/qemu_capabilities.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 73300128ea..e6d256a9cd 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -537,6 +537,8 @@ VIR_ENUM_IMPL(virQEMUCaps, /* 335 */ "bochs-display", "migration-file-drop-cache", + "xres", + "yres", ); =20 =20 @@ -1219,6 +1221,8 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevic= ePropsKVMPit[] =3D { =20 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVGA[] =3D { { "vgamem_mb", QEMU_CAPS_VGA_VGAMEM }, + { "xres", QEMU_CAPS_XRES }, + { "yres", QEMU_CAPS_YRES }, }; =20 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVmwareSvga[] = =3D { @@ -1229,6 +1233,8 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevic= ePropsQxl[] =3D { { "vgamem_mb", QEMU_CAPS_QXL_VGAMEM }, { "vram64_size_mb", QEMU_CAPS_QXL_VRAM64 }, { "max_outputs", QEMU_CAPS_QXL_MAX_OUTPUTS }, + { "xres", QEMU_CAPS_XRES }, + { "yres", QEMU_CAPS_YRES }, }; =20 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioGpu[] =3D= { @@ -1237,6 +1243,13 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevi= cePropsVirtioGpu[] =3D { { "disable-legacy", QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY }, { "iommu_platform", QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM }, { "ats", QEMU_CAPS_VIRTIO_PCI_ATS }, + { "xres", QEMU_CAPS_XRES }, + { "yres", QEMU_CAPS_YRES }, +}; + +static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsBochs[] =3D { + { "xres", QEMU_CAPS_XRES }, + { "yres", QEMU_CAPS_YRES }, }; =20 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsICH9[] =3D { @@ -1362,6 +1375,9 @@ static virQEMUCapsObjectTypeProps virQEMUCapsDevicePr= ops[] =3D { { "virtio-gpu-device", virQEMUCapsDevicePropsVirtioGpu, ARRAY_CARDINALITY(virQEMUCapsDevicePropsVirtioGpu), QEMU_CAPS_DEVICE_VIRTIO_GPU }, + { "bochs-display", virQEMUCapsDevicePropsBochs, + ARRAY_CARDINALITY(virQEMUCapsDevicePropsBochs), + QEMU_CAPS_DEVICE_BOCHS_DISPLAY }, { "ICH9-LPC", virQEMUCapsDevicePropsICH9, ARRAY_CARDINALITY(virQEMUCapsDevicePropsICH9), -1 }, diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index 68ef6c49b4..5e3d542994 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -518,6 +518,8 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ /* 335 */ QEMU_CAPS_DEVICE_BOCHS_DISPLAY, /* -device bochs-display */ QEMU_CAPS_MIGRATION_FILE_DROP_CACHE, /* migration with disk cache on i= s safe for type=3D'file' disks */ + QEMU_CAPS_XRES, /* -device *,xres=3D */ + QEMU_CAPS_YRES, /* -device *,yres=3D */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list