77 | | With its latest processors, Intel has introduced hardware virtualization support |
| 77 | With its latest processors, Intel has introduced hardware virtualization support, which they call "Vanderpool", "IVT", "VT-x", or "VMX" (for "virtual machine extensions"). We use the term "VMX". A thorough explanation of this architecture can be found on [http://www.intel.com/technology/itj/2006/v10i3/1-hardware/5-architecture.htm Intel's pages], but as a summary, with these extensions, a processor always operates in one of the following two modes: |
| 78 | |
| 79 | * In '''root mode''', its behavior is very similar to the standard mode of operation (without VMX), and this is the context that a virtual machine monitor (VMM) runs in. |
| 80 | * The '''non-root mode''' (or guest context, if you want) is designed for running a virtual machine. |
| 81 | |
| 82 | The notable novelty is that all four privilege levels (rings) are supported in either mode, so guest software can theoretically run at any of them. |
| 83 | |
| 84 | Since, however, nearly all operating systems in use today only make use of ring-0 and ring-3, and since context switching between root mode and non-root mode is very expensive, !VirtualBox does not use VMX entirely as intended by Intel. Instead, we make partial use of it -- only where it makes sense and where it helps us to improve performance. |
| 85 | |
| 86 | |