implement vmaccess.c