1. A method comprising: selecting a memory page of host application code; translating the contents of the selected memory page of host application code; saving the translated contents of the selected memory page into a stub code area; overwriting the selected memory page of host application code; removing host page permission for execution of code in the selected memory page of host application code; and emulating the translated contents of the selected memory page when an exception is raised as a result of attempted access to the selected memory page of host application code.