From nobody Mon Feb 9 15:10:33 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+87447+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+87447+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1646977406; cv=none; d=zohomail.com; s=zohoarc; b=LbIXNrwIVr7rLCir5iLamm9+6VPLWmql/T9ntn+R5Ca1evVgTY7NlcbywkWdp5vzdimMqCG3E1OKodUtjMxmwMifPWyAFw+jwC03w3FnFWqY3XiUksQDcU0x6WOTDlquVK/Qzpx9gFzcDNu/vSEOlqKX6SLo6R6OhJxLLgXXvs8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646977406; 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=U+8TCSQ03R5s9If4refF9wPvhxMogdCLEDkIG/jIzeE=; b=Et0MTTHJPke/Qj/vtypJsXjcPBe/RV6vTqKX39/dLMBCPf+l1DXDa+RWBxYkt6DiWM5wXrpQy59MZ8GvTZwWMbDJPrTQToSgRf8C/sm4/NnySQsHXyX7eUrrUQn2NLdn9mNqIuZwpwFcDqVwXzzBhzY2VGxwu4H6kxLXZrQziVc= 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+87447+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 1646977406148575.7805375569327; Thu, 10 Mar 2022 21:43:26 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id FxdqYY1788612xmgkjNAEV9N; Thu, 10 Mar 2022 21:43:25 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web12.2688.1646977404586362066 for ; Thu, 10 Mar 2022 21:43:24 -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-484-IJ2QhngDN6ebz0fKKMpq5w-1; Fri, 11 Mar 2022 00:43:21 -0500 X-MC-Unique: IJ2QhngDN6ebz0fKKMpq5w-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 8AA7C51DC for ; Fri, 11 Mar 2022 05:43:20 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.196.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 44D0F5DBA9; Fri, 11 Mar 2022 05:43:20 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id B02B81800612; Fri, 11 Mar 2022 06:43:15 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 3/6] OvmfPkg/VirtioGpuDxe: add VirtioGpuGetDisplayInfo Date: Fri, 11 Mar 2022 06:43:12 +0100 Message-Id: <20220311054315.876774-4-kraxel@redhat.com> In-Reply-To: <20220311054315.876774-1-kraxel@redhat.com> References: <20220311054315.876774-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: vFthIgUeC9tUj758KQ2iblqhx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1646977405; bh=JChG5cXWDrrnDjIa0kazXVMbE0oXVgsF7whBEgvZXc0=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=KSlbMdDYsAfQ0d01kpYaXutEvsqG3HixRSDGhnKKRFFmjyQhS18nAUNoUkY+/BPP/OJ rHFACl7st0inOdLgvVeWz5OlIrhXwJ/3ya8umxQc1i24+1lIcXFCWjrxSyCAi8R2115gv uc//UrjiHunrfgiHBwG75uWfjnFYslGkgXM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1646977406652100009 Content-Type: text/plain; charset="utf-8" Add support for sending a GetDisplayInfo command. Signed-off-by: Gerd Hoffmann --- OvmfPkg/VirtioGpuDxe/VirtioGpu.h | 6 ++++++ OvmfPkg/VirtioGpuDxe/Commands.c | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/OvmfPkg/VirtioGpuDxe/VirtioGpu.h b/OvmfPkg/VirtioGpuDxe/Virtio= Gpu.h index 2155b261d43e..1d781088bb3f 100644 --- a/OvmfPkg/VirtioGpuDxe/VirtioGpu.h +++ b/OvmfPkg/VirtioGpuDxe/VirtioGpu.h @@ -366,6 +366,12 @@ VirtioGpuResourceFlush ( IN UINT32 ResourceId ); =20 +EFI_STATUS +VirtioGpuGetDisplayInfo ( + IN OUT VGPU_DEV *VgpuDev, + volatile VIRTIO_GPU_RESP_DISPLAY_INFO *Response + ); + /** Release guest-side and host-side resources that are related to an initia= lized VGPU_GOP.Gop. diff --git a/OvmfPkg/VirtioGpuDxe/Commands.c b/OvmfPkg/VirtioGpuDxe/Command= s.c index b9a3ea923021..4318d3d771c5 100644 --- a/OvmfPkg/VirtioGpuDxe/Commands.c +++ b/OvmfPkg/VirtioGpuDxe/Commands.c @@ -828,3 +828,23 @@ VirtioGpuResourceFlush ( sizeof Request ); } + +EFI_STATUS +VirtioGpuGetDisplayInfo ( + IN OUT VGPU_DEV *VgpuDev, + volatile VIRTIO_GPU_RESP_DISPLAY_INFO *Response + ) +{ + volatile VIRTIO_GPU_CONTROL_HEADER Request; + + return VirtioGpuSendCommandWithReply ( + VgpuDev, + VirtioGpuCmdGetDisplayInfo, + FALSE, // Fence + &Request, + sizeof Request, + VirtioGpuRespOkDisplayInfo, + &Response->Header, + sizeof *Response + ); +} --=20 2.35.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 (#87447): https://edk2.groups.io/g/devel/message/87447 Mute This Topic: https://groups.io/mt/89705199/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-