1. A method to reconfi re a programmable circuit, the method comprising: detecting a trigger, wherein the trigger indicates a command has been sent to a processor to switch from execution of a first virtual machine to a second virtual machine; in response to detection of the trigger, selecting a programmable circuit and a program, where the programmable circuit is associated with the second virtual machine; and generating a write command to write the program to the programmable circuit.