Patent ID: 8505006

Claim:
A method comprising: receiving, from an application running in a guest environment, a request for a resource stored in one of a host memory and a guest memory, wherein the request includes a data structure having an object name and an indication that the resource is to be read from the host memory; processing the request to identify the resource in the host memory; calculating a first dynamic table weight for the data structure based on a first dynamic table indicative of resources stored in the host memory by querying the first dynamic table for the resource; calculating a second dynamic table weight for the data structure based on a second dynamic table indicative of resources stored in the guest memory by querying the second dynamic table for the resource; determining whether the request for the resource is a request for resource stored in the guest memory based on a comparison of the first dynamic table weight and the second dynamic table weight; and in response to determining that the request is a request for the resource stored in the guest memory, modifying the data structure of the request to indicate that the resource is to be read from the guest memory by modifying the object name identifying where the resource is located from the host memory to the guest memory.