Question regarding VMCS launch state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The Intel SDM says:

"The launch state of a VMCS determines which VM-entry instruction
should be used with that VMCS: the
VMLAUNCH instruction requires a VMCS whose launch state is “clear”;
the VMRESUME instruction requires a VMCS
whose launch state is “launched”. A logical processor maintains a
VMCS’s launch state in the corresponding VMCS
region."

"There are no other ways to modify the launch state of a VMCS (it
cannot be modified using VMWRITE) and there
is no direct way to discover it (it cannot be read using VMREAD).'

According to the above description, the launch state is stored in the
VMCS region, but it seems the SDM doesn't say where exactly the launch
state is stored in the VMCS. For example, the VMCS data is organized
into six logic groups: Guest-state area, Host-state area, VM-execution
control fields, VM-exit control fields, VM-entry control fields,
VM-exit information fields. However, I can't find the "launch state"
in any of these fields.

If it's in the VMCS region, then why can't I find it? and why it can't
be discovered by VMREAD?

I saw in the kvm source code a variable called launched is defined,
which enables kvm to trace the launch state of the VMCS, but is this
launch state really existing in the VMCS region? If so, where exactly
is it?

-Jidong




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux