From nobody Mon Feb 9 21:20:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+86359+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86359+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1643873174; cv=none; d=zohomail.com; s=zohoarc; b=M+/8T710TkEuCn7zB/rI5v3DH0bUT6fy5BRf8I5GPcDEVofICYCYvvIRIqb0IsMF0PX9QFr0SxhAHbhuu2XHH4cq009MonVTbRn3VsOI8IEyHx/cjorcqwXnFMA09HqM9GF/iA34LI+zzytuxdHDNzVM8+Gl7+jivdIzUqyHVqM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643873174; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=panmAR6HsFqKH6DtLSmr9DAoa98zG2GmP7adwQ0j1a4=; b=JGBe2ToCicoAJIP/x9J+HeMMcAEV/3A6fU1ccpukKiPZvJ1PVQc4kpe4/Kg0YN+vak+QkrgnLG3dcGFPR6PHwmjHgYJrNCgG0A3L20lvOpvaIkt3832su+BviKrtQCUTkaFkq3t6ASjpanfpPJltFOb32BXkUgmZVuGQ5pWRrDw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86359+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1643873174343705.9478143607062; Wed, 2 Feb 2022 23:26:14 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id NzvDYY1788612xPq1ab4EWbt; Wed, 02 Feb 2022 23:26:13 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.6286.1643873172999253228 for ; Wed, 02 Feb 2022 23:26:13 -0800 X-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-391-qIXgKJx0NfCRAi_iwPH8AQ-1; Thu, 03 Feb 2022 02:26:09 -0500 X-MC-Unique: qIXgKJx0NfCRAi_iwPH8AQ-1 X-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 D0870871800 for ; Thu, 3 Feb 2022 07:26:05 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.193.47]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 833A760BD8; Thu, 3 Feb 2022 07:26:05 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id A6D2B18003A7; Thu, 3 Feb 2022 08:26:00 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH 2/6] OvmfPkg/VirtioGpuDxe: add GetDisplayInfo to virtio-gpu spec header. Date: Thu, 3 Feb 2022 08:25:56 +0100 Message-Id: <20220203072600.1646396-3-kraxel@redhat.com> In-Reply-To: <20220203072600.1646396-1-kraxel@redhat.com> References: <20220203072600.1646396-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: LryEtM9u3uqC4b9JcZLxpGtlx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1643873173; bh=npiidM/ldNkXEMq79+VyLibLrPrcpIsWKakq/AmMrO8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=bnZFacRrp6SW4nMXsJZyRdBugOdiQaVfw+VIoSgPqd3IALjs5/kw5Pgqk8sANITaEzP ZQs5YBRzClASKVIJasm7sQ9Jhqf0e4nZuDy7lBTuqL72lvpesPMe1l6y0ToGmSRoxrNKD E9SgcMFgLZkCufz2ESXMndt7QjaNOTBPdEU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1643873176132100007 Content-Type: text/plain; charset="utf-8" Add GetDisplayInfo command, reply and data struct to the virtio-gpu specification header file. Signed-off-by: Gerd Hoffmann --- OvmfPkg/Include/IndustryStandard/VirtioGpu.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/Include/IndustryStandard/VirtioGpu.h b/OvmfPkg/Include= /IndustryStandard/VirtioGpu.h index 12559ccef5b1..13f719d4c0f2 100644 --- a/OvmfPkg/Include/IndustryStandard/VirtioGpu.h +++ b/OvmfPkg/Include/IndustryStandard/VirtioGpu.h @@ -37,6 +37,7 @@ typedef enum { // // - create/release a host-side 2D resource, // + VirtioGpuCmdGetDisplayInfo =3D 0x0100, VirtioGpuCmdResourceCreate2d =3D 0x0101, VirtioGpuCmdResourceUnref =3D 0x0102, // @@ -64,7 +65,8 @@ typedef enum { // // Success code for all of the above commands. // - VirtioGpuRespOkNodata =3D 0x1100, + VirtioGpuRespOkNodata =3D 0x1100, + VirtioGpuRespOkDisplayInfo =3D 0x1101, } VIRTIO_GPU_CONTROL_TYPE; =20 // @@ -207,4 +209,19 @@ typedef struct { } VIRTIO_GPU_RESOURCE_FLUSH; #pragma pack () =20 +// +// Response structure for VirtioGpuCmdGetDisplayInfo +// +#define VIRTIO_GPU_MAX_SCANOUTS 16 +#pragma pack (1) +typedef struct { + VIRTIO_GPU_CONTROL_HEADER Header; + struct { + VIRTIO_GPU_RECTANGLE Rectangle; + UINT32 Enabled; + UINT32 Flags; + } Pmodes[VIRTIO_GPU_MAX_SCANOUTS]; +} VIRTIO_GPU_RESP_DISPLAY_INFO; +#pragma pack () + #endif // _VIRTIO_GPU_H_ --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86359): https://edk2.groups.io/g/devel/message/86359 Mute This Topic: https://groups.io/mt/88878647/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-