On Sat, Oct 15, 2011, Shashank Rachamalla wrote about "Re: Intel VT-x VMCS
doubt":
> However, I am not sure when the CPU switches between host and guest
> state ? I came across instructions VMRUN and VMRESUME while reading
> which do a VM entry. I think guest state get
On Sat, Oct 15, 2011, Shashank Rachamalla wrote about "Intel VT-x VMCS doubt":
> Hi
>
> After catching up with some reading on Intel VT-x, I could understand
> the use of VMCS ( virtual machine control structure ) which allows a VMM
> to specify instructions and events
Hi
I think you are right. I observed the following from code where a vcpu
gets created ( vmx_create_vcpu )
1) Allocate a new VPID ( the first zero bit from the vmx vpid bitmap )
2) Create an MMU ( can be softmmu or tdp )
3) Allocate a VMCS to this VCPU and set the current_vmcs of CPU in use
to
Hi
After catching up with some reading on Intel VT-x, I could understand
the use of VMCS ( virtual machine control structure ) which allows a VMM
to specify instructions and events that cause VM entries and exits. My
current understanding is that a VMCS structure is maintained by VMM for
each gue