An operating system is described that is capable of ascertaining whether
it is executing in a virtual machine environment and is further capable
of modifying its behavior to operate more efficiently and provide optimal
behavior in a virtual machine environment. An operating system is
enlightened so that it is aware of VMMs or hypervisors, taking on
behavior that is optimal to that environment. The VMM or hypervisor
informs the operating system of the optimal behavior, and vice versa.