[vbox-dev] Simple PCI device for shared memory
Nev
vbox at zavalon.com
Wed May 26 22:29:22 PDT 2010
Hi,
I have a working patch for VirtualBox, which enables a Guest to use
Linux Host shared memory (only tested with Windows XP Guest).
A patch for VirtualBox 3.2.0 OSE is attached.
To date I have done only limited testing, so far I have not seen any
problems.
I will welcome any suggestion on how to improve this code, or any likely
issues.
To enable the VirtualPci device, you need to configure the VM with
VBoxManage setextradata WinXP
"VBoxInternal/Devices/virtualPci/0/Config/Name" "SomeName"
The shared memory must exist before starting the Virtual Machine. Use
int fildes = shm_open("SomeName", O_CREAT | O_RDWR | O_EXCL, mode);
to create file and
ftruncate(fildes, shmSize);
to set size. shmSize should be power of 2.
Is this the correct forum to ask question re distribution of modified
VirtualBox OSE?
Nev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vbox-patch
Type: text/x-patch
Size: 21481 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20100527/6b3ad312/attachment-0001.bin
More information about the vbox-dev
mailing list