User:Kazinsal/VirtualBox Video Adapter/Notes

From OSDev Wiki
Jump to navigation Jump to search

Readers: Do not take these notes as fact. These are my musings and such attributable to my downward spiral into insanity while working on the VBoxVideo research. Proceed at your own risk.

  • The X11 sample driver is shit. Seriously, this thing is a nightmare. I've spent about an hour trying to figure out how it works, and while it seems simple compared to the other, less generic drivers, it's godawful at best.
    • Reminder to self: Increment count of hours wasted reading this helldump of code whenever notes change.
  • There is no good explanation anywhere that I can find as to how HGSMI actually works.
  • "Size hints" seem to be how a guest's VBoxVideo driver is supposed to know when to change the resolution.
    • Conjecture: Presumably size hints are only sent when VBE_DISPI_ID_ANYX is available, as other versions of the graphics device must have (cx % 8 == 0).