Hi, VMware registers the port 0x5658 to communicate between guest and host. At the moment, vmmouse.c is the only one to use this communication channel, so it registers the port. IMO, this design is not right because it will be hard to implement other functionalities of VMware.
I extracted non-mouse part from this file and created a framework for VMware communication in a new file. Devices can then register for specific commands, so communication port will be shared between devices. I also added support for "Get RAM size" command. More commands will be added later. Attached files: 0 - vmmouse-formatting.diff Replace tabs by 8 spaces. No code change 1 - adding-vmport.diff Add a generic framework for VMware communication port 2 - vmmouse-using-vmport.diff Use the framework for the VMware mouse emulation Hervé
0 - vmmouse-formatting.diff
Description: Binary data
1 - adding-vmport.diff
Description: Binary data
2 - vmmouse-using-vmport.diff
Description: Binary data