>what I really want to ask is: say I have 16Mb physical memory present in
>the guest, and I have an "8Mb video card", I assumed the 8Mb video
>memory would be mapped somehow & where into the guests address space
>(from the video cards perspective - if you have real hardware).
>
>So apart from the "16Mb physical memory", is there a way to add the
>"extra" (video) memory at specific locations into the guest (ie. if I
>would like to create a VESA VBE2 interface, I would have a linear frame
>buffer. Can I allocate an 8Mb buffer and "map" it into the guests memory
>space in such a way that the guest can use this as "video memory" and
>the host can read this data (maybe my understanding of the "real" world
>isn't correct here?)

Yes it is, but an optimised video driver isn't the real world --- it's a hack
made specifically for VMs.  You don't HAVE to make it work like in the real
world!  It should be possible to do what you want (if it isn't it needs to
be added!), but I wouldn't do it this way for the optimised driver.  What I'd
do:

(1) let the guest allocate a piece of physical memory
(2) let the guest pass the address to the plex86 plugin using I/O ports
(3) the plex86 plugin will use the specified chunk of memory for its
    framebuffer.

-- Ramon




Reply via email to