1. A method for redirecting accesses to a peripheral device's configuration space, comprising: copying the current contents of the configuration space to a memory, wherein the memory is separate from the peripheral device; redirecting accesses from the configuration space to the memory, whereby: the redirecting allows the peripheral device to be powered off; and the memory services the accesses to the configuration space when the peripheral device is powered of; powering on the peripheral device if the redirecting has been deactivated; and setting the peripheral device's configuration space based on the current contents of the memory, whereby accesses to the configuration space are serviced by the configuration space.