ladybird/Kernel/Graphics/VirtIOGPU
Liav A e2ed6ef741 Kernel/Graphics: Bring back the mmap interface for DisplayConnectors
The mmap interface was removed when we introduced the DisplayConnector
class, as it was quite unsafe to use and didn't handle switching between
graphical and text modes safely. By using the SharedFramebufferVMObject,
we are able to elegantly coordinate the switch by remapping the attached
mmap'ed-Memory::Region(s) with different mappings, therefore, keeping
WindowServer to think that the mappings it has are still valid, while
they are going to a different physical range until we are back to the
graphical mode (after a switch from text mode).

Most drivers take advantage of the fact that we know where is the actual
framebuffer in physical memory space, the SharedFramebufferVMObject is
created with that information. However, the VirtIO driver is different
in that aspect, because it relies on DMA transactions to show graphics
on the framebuffer, so the SharedFramebufferVMObject is created with
that mindset to support the arbitrary framebuffer location in physical
memory space.
2022-06-06 20:11:05 +01:00
..
Console.cpp Kernel/Graphics: Flush the entire buffer if using VirtIO console 2022-06-06 20:11:05 +01:00
Console.h Kernel/Graphics: Flush the entire buffer if using VirtIO console 2022-06-06 20:11:05 +01:00
DisplayConnector.cpp Kernel/Graphics: Bring back the mmap interface for DisplayConnectors 2022-06-06 20:11:05 +01:00
DisplayConnector.h Kernel/Graphics: Bring back the mmap interface for DisplayConnectors 2022-06-06 20:11:05 +01:00
GPU3DDevice.cpp Kernel/Graphics: Apply DisplayConnector design on the VirtIO driver 2022-05-05 20:55:57 +02:00
GPU3DDevice.h Kernel/Graphics: Apply DisplayConnector design on the VirtIO driver 2022-05-05 20:55:57 +02:00
GraphicsAdapter.cpp Kernel/Graphics: Bring back the mmap interface for DisplayConnectors 2022-06-06 20:11:05 +01:00
GraphicsAdapter.h Kernel/Graphics: Bring back the mmap interface for DisplayConnectors 2022-06-06 20:11:05 +01:00
Protocol.h Kernel: Fix buffer overflow in VirtIOGPU create_3d_resource(..) 2022-03-14 22:30:22 +01:00