Ramon van Handel wrote:
> All of the virtualised physical memory is mapped into the user program's address
>space using an
> mmap call. You don't "reserve" a piece of memory but you simply use it (you could
>use your API calls
> to have the guest specify its requested location of the framebuffer). You can use
>the calls vm_read_physical()
> and vm_write_physical() (check out the source) to read and write from the guest's
>physical memory in the user
> program.
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?)
--
Best regards,
Jeroen Janssen
+++
The Patrician relaxed, in a way which only then drew gentle attention to
the foregoing moment of tension.
-- (Terry Pratchett, Men At Arms)
+++