Add memory method in VM OM

Change-Id: Icefa9df8dcf0fda0a891aca9cffbf2f106ecbbe4