public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Laszlo Ersek <lersek@redhat.com>
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 15:31:47 +0100	[thread overview]
Message-ID: <CAKv+Gu-ehECd0Ms6g6EQgKrxoTHRJ7uam95uW3LTJBDwzn_1fA@mail.gmail.com> (raw)
In-Reply-To: <CAKv+Gu8o3y-0_7DOYTUp0H+buTz9tmTA9ZqVQG85eZsBT-f0Lw@mail.gmail.com>

[...]
>>
>> (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.

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)

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

-- 
Ard.


  reply	other threads:[~2017-08-22 14:29 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 [this message]
2017-08-22 15:44       ` Laszlo Ersek

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=CAKv+Gu-ehECd0Ms6g6EQgKrxoTHRJ7uam95uW3LTJBDwzn_1fA@mail.gmail.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