Re: [PATCH 22/23] Hack in dirty logging for VGA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 08.07.2009, at 08:20, Benjamin Herrenschmidt wrote:

On Tue, 2009-07-07 at 18:48 +0300, Avi Kivity wrote:
On 07/07/2009 05:17 PM, Alexander Graf wrote:
I haven't implemented dirty logging yet, but without things are just way too slow. So for the time being I hacked in a dummy function that always tells
userspace we're dirty in VGA regions.

Please don't apply this. This patch is for reference only.



ia64 has the same problem; you can deal with this in userspace.

Well... also depending on what we are trying to emulate it might not be
worth at all presenting some kind of legacy VGA device. For example,
PowerMacs are physically incapable of generating the appropriate cycles
on the bus.

We are probably better off exposing pseudo PCI graphics device that is
reflected by a display node in the device-tree with enough information
populated there for offb to be able to pick it up initially, and then
have the option of paravirt drivers for accelerating it or making it
capable of switching modes etc... That's pretty much what we did with
MacOnLinux in fact.

Also, MOL kept track of dirtied pages in the fb as well to speed up
refresh.

Well, the current code does almost the same. It does emulate a VGA card in qemu, but that's simply because it was there. Everything Linux sees is a big framebuffer and this patch is about not trapping on every MMIO to that framebuffer, but instead keeping it as RAM and only telling userspace about the dirty pages.

So yeah, I think we can get away without yet another graphics card implementation in qemu :-).

Alex


--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux