public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	Leif Lindholm <leif.lindholm@linaro.org>,
	Jordan Justen <jordan.l.justen@intel.com>
Subject: Re: [PATCH] OvmfPkg/QemuVideoDxe: map framebuffer as write-combining/non-executable
Date: Tue, 22 Aug 2017 17:44:23 +0200	[thread overview]
Message-ID: <ba2de553-c580-73ea-8fe2-a27f19a94a0e@redhat.com> (raw)
In-Reply-To: <CAKv+Gu-ehECd0Ms6g6EQgKrxoTHRJ7uam95uW3LTJBDwzn_1fA@mail.gmail.com>

On 08/22/17 16:31, Ard Biesheuvel wrote:
> [...]
>>>
>>> (1) When we added VirtioGpuDxe to the ArmVirtPkg platforms, the only
>>> reason I didn't propose removing QemuVideoDxe from the same platforms
>>> was that QemuVideoDxe was usable on QEMU/TCG, and I figured it wouldn't
>>> hurt to keep it.
>>>
>>> Other than that, I see zero point in using this driver on ARM. (And,
>>> apparently, it does hurt to keep it.)
>>>
>>> Can we please consider simply removing this driver from the ArmVirtPkg
>>> platforms? (And then some now-conditional compilation could be
>>> simplified in the driver too!)
>>>
>>
>> It is actually quite useful in TCG mode, and the fact that QEMU
>> currently allows unaligned accesses to device memory is not something
>> we should be relying upon.
>>
> 
> Actually, I managed to confuse myself here. The only thing lacking
> when running with virtio-gpu rather than VGA is efifb support, due to
> the fact that the framebuffer is no longer directly addressable. efifb
> is a useful hack on bare metal systems that lack a real framebuffer
> driver, but it is hardly something to care deeply about on VMs.

(Some side thoughts:

The "virtiodrmfb" driver in the Linux guest works fine with
virtio-gpu-pci. It does not activate itself as soon into the boot
process as efifb, but it does provide a fully functional character
console. And X11 works fine too, with the kernel modesetting driver.

Even if efifb had a chance to work (inheriting a framebuffer), it would
be supplanted during boot really quickly by virtiodrmfb. So the only
consequence of "efifb" not working is that the character console comes
to life a bit later, and some early messages are not shown on the VT.)

> So I am going to change my mind, and agree with Laszlo: let's remove
> QemuVideoDxe from ArmVirtQemu; the longer we wait, the more difficult
> it becomes, and only TCG users that rely on a GOP protocol being
> exposed with direct framebuffer access are going to be affected in the
> first place (if any such use cases exist)

I expect this set of users to be empty already.

> Laszlo: any ideas or suggestions you may want to share before I start
> working on this?

Just the above musings. Please go ahead with the QemuVideoDxe removal!

Thank you!
Laszlo


      reply	other threads:[~2017-08-22 15:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-18 13:02 [PATCH] OvmfPkg/QemuVideoDxe: map framebuffer as write-combining/non-executable Ard Biesheuvel
2017-08-18 13:04 ` Ard Biesheuvel
2017-08-18 17:20   ` Jordan Justen
2017-08-18 17:25     ` Ard Biesheuvel
2017-08-18 17:49       ` Jordan Justen
2017-08-18 18:08         ` Leif Lindholm
2017-08-18 19:36           ` Jordan Justen
2017-08-18 18:16         ` Ard Biesheuvel
2017-08-18 18:26 ` Leif Lindholm
2017-08-18 21:42 ` Laszlo Ersek
2017-08-18 21:51   ` Ard Biesheuvel
2017-08-22 14:31     ` Ard Biesheuvel
2017-08-22 15:44       ` Laszlo Ersek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba2de553-c580-73ea-8fe2-a27f19a94a0e@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox