[vbox-dev] Simple PCI device for shared memory

Nev vbox at zavalon.com
Thu May 27 05:29:22 GMT 2010

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
I will welcome any suggestion on how to improve this code, or any likely
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?

-------------- 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.bin>

More information about the vbox-dev mailing list