1. A method comprising: a virtual machine monitor (VMM) receiving control following a transition from a virtual machine (VM) executing guest software, wherein the transition to the VMM is caused by a control mechanism unavailable to the guest software; and determining whether to modify the guest software based upon a predetermined parameter; modifying the guest software based on the determination; and profiling the guest software to determine an effectiveness of the modification and removing the modification based on the profiling results.