I'm making the vm for my network simulation idea...
Here is the design I came up with...
Please suggest an alternative for the main memory..(except storing void*s and typecasting as needed ) and for the other parts if you know something else will work better and easier to write.