Patent ID: 8447935

Claim:
A computer-implemented method of facilitating the communication between a first Virtual Machine (VM) and a second VM, wherein said first VM and said second VM are in the same physical machine, said method comprises: allocating a shared memory segment within the memory of said physical machine and notifying said first VM and said second VM of said allocation; mapping the address of a memory space requested by said first VM to a first address of said shared memory segment, said mapping comprising: obtaining a first guest physical address of said memory space requested by said first VM in said first VM; translating said first guest physical address to a first host physical address in said physical machine by looking up an extended page table; and replacing said first host physical address with said host physical address of said shared memory in said extended page table, and mapping the address of a memory space requested by said second VM to a second address of said shared memory segment, said mapping comprising: obtaining a second guest physical address of said memory space requested by said second VM in said second VM; translating said second guest physical address to a second host physical address in said physical machine by looking up the extended page table; and replacing said second host physical address with said host physical address of said shared memory in said extended page table; and providing said address of said requested memory space by said first VM to said first VM and said address of said requested memory space by said second VM to said second VM.