Skip to content
Hirochika Asai edited this page May 18, 2015 · 2 revisions

VMX

VMCS

State of VMCS X (cited from Figure 24-1 in the Intel SDM)

+-------------+    	    	  +-------------+               +-------------+
| Active      |               | Inactive    |               | Active      |
| Not Current |== VMCLEAR X =>| Not Current |<= VMCLEAR X ==| Not Current |
| Clear       |               | Clear       |               | Launched    |
+-------------+      +--------+-------------+               +-------------+
   |      ^         /         ^      ^      ^                   |     ^
   |      |        /         /       |       \                  |     |
   |      |   VMPTRLD X     /    VMCLEAR X    \                 |     |

VMPTRLD X | / VMCLEAR X | VMCLEAR X VMPTRLD X | | VMPTRLD Y / / +-------------+ \ | VMPTRLD Y | | / / | Anything | \ | | v | v / | Else | \ v | +-------------+--------+ +-------------+ +--------+-------------+ | Active | | Active | | Current |================= VMLAUNCH =================>| Current | | Clear | | Launched | +-------------+ +-------------+

No VMCS should ever be active on more than one logical processor.

VMCS Region

A VMCS comprises up to 4 KiB region.

Byte Offset | Contents

0 | Bits 30:0: VMCS revision identifier | Bit 31: shadow-VMCS indicator

4 | VMX-abort indicator

8 | VMCS data (implementation-specific format)

VMCS Data

VMCS data are composed of the following six logical groups.

  • Guest-state area
  • Host-state area
  • VM-execution control fields
  • VM-exit control fields
  • VM-entry control fields
  • VM-exit information fields

Clone this wiki locally