From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4377E1A1E74 for ; Thu, 1 Sep 2016 11:03:29 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP; 01 Sep 2016 11:03:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,268,1470726000"; d="scan'208";a="1050267723" Received: from danyzest-mobl.amr.corp.intel.com (HELO localhost) ([10.252.141.10]) by fmsmga002.fm.intel.com with ESMTP; 01 Sep 2016 11:03:28 -0700 MIME-Version: 1.0 To: Laszlo Ersek , Message-ID: <147275300806.20661.4606850370467291385@jljusten-ivb> From: Jordan Justen In-Reply-To: <2c5b6038-a51a-9206-392b-d391c0aabf51@redhat.com> Cc: "Ard Biesheuvel" , "edk2-devel-01" References: <20160819124932.29711-1-lersek@redhat.com> <147267618723.12178.11385591212119668150@jljusten-ivb> <2c5b6038-a51a-9206-392b-d391c0aabf51@redhat.com> User-Agent: alot/0.3.7 Date: Thu, 01 Sep 2016 11:03:28 -0700 Subject: Re: [PATCH 00/11] OvmfPkg, ArmVirtPkg: GOP driver for the VirtIo GPU (virtio-gpu-pci) X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 18:03:29 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 2016-09-01 09:29:28, Laszlo Ersek wrote: > On 08/31/16 22:43, Jordan Justen wrote: > > = > > If an OS can't load or find the native driver, the framebuffer also > > provides a way to communicate with the user. > = > I agree that exposing the framebuffer address through the GOP (at boot > time) so that the runtime OS can directly access the framebuffer (at > runtime) is useful. For example, in Windows 8 and Windows 10 guests, > this is how QXL can be initially used, interactively, until the native > QXL drivers are installed. > = > I also agree that making a directly accessible framebuffer an *optional* I can't dispute that it is optional by UEFI spec, but I think it is commonly available (and for good reason). > feature in the UEFI spec was the right thing to do! Graphics output > *should* be supportable at least at boot time even if the device lacks a > linear framebuffer (and even if the above OS fallback will therefore not > work). > Isn't there generally a window after ExitBootServices is called, and before the OS has it's own native driver loaded? For example, often the Linux boot loader calls EBS before starting the kernel. What if the kernel doesn't have the virtio gpu driver? Now there's no possible way to signal the user. This is just the Linux example, but for various OS's there could be any number of reasons for something similar to occur. > > = > > Regarding VirtIo GPU: Shouldn't we wait until it makes it into the > > actual specs? > = > No, we should not, at this point. > > However, things have changed recently. I've received pings from three > organizations that the driver has become more urgent for them. Combined > with the facts that the 2D feature set of virtio-gpu has been part of > QEMU since 2.4 [1], and a 2D Linux guest driver has existed for > virtio-gpu since Linux 4.2 [2] [3], it seemed justified to shift the > focus to working code, rather than standardization. > Ok. I guess it is the de-facto standard then. That is a good argument to move forward, but I hope standardization doesn't lead to any annoying compat issues. > > Is there any chance to update the spec provide a simple (directly > > scanned out) framebuffer mode? > = > As described in both the spec and several places in this series, such a > device already exists (both specified and implemented): it is called > "virtio-vga". "Virtio-vga" is the combination of "virtio-gpu-pci" plus a > legacy VGA framebuffer (the one you also get with QXL and stdvga). > = > It is exactly this framebuffer that breaks in aarch64 KVM guests, due to > architectural / KVM cache coherence issues (=3D as in, stuff that has been > shipped in physical hardware already). For that reason, the > "qemu-system-aarch64" binary, unlike "qemu-system-x86_64", does not even > include the "virtio-vga" device model -- the framebuffer would be broken > *anyway* on KVM. Instead, there we have to use "virtio-gpu-pci". > I think there would be value to have a non-VGA device that could still configure a simple framebuffer. VGA does bring a fair amount of other baggage. But, your point is good, that this does essentially 'fill the gap' allowing for a temporary framebuffer while also allowing virtio gpu to be used by the native OS driver. > In other words, lacking a framebuffer is a *bonus* (which side-steps the > aarch64 architectural / KVM problem). > It doesn't sound like a bonus. :) Couldn't framebuffer support be an optional capability of the virtio gpu device? -Jordan