* VMXON region vs VMCS region?
@ 2012-01-31 3:35 Zhi Yong Wu
2012-01-31 12:29 ` Orit Wasserman
0 siblings, 1 reply; 5+ messages in thread
From: Zhi Yong Wu @ 2012-01-31 3:35 UTC (permalink / raw)
To: KVM mailing list
HI,
Can anyone let me know know the difference between VMXON region and
VMCS region? relationship?
It will be appreciated if you can make some comments.
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMXON region vs VMCS region?
2012-01-31 3:35 VMXON region vs VMCS region? Zhi Yong Wu
@ 2012-01-31 12:29 ` Orit Wasserman
2012-02-01 1:53 ` Zhi Yong Wu
2012-02-07 15:09 ` Zhi Yong Wu
0 siblings, 2 replies; 5+ messages in thread
From: Orit Wasserman @ 2012-01-31 12:29 UTC (permalink / raw)
To: Zhi Yong Wu; +Cc: KVM mailing list
On 01/31/2012 05:35 AM, Zhi Yong Wu wrote:
> HI,
>
> Can anyone let me know know the difference between VMXON region and
> VMCS region? relationship?
>
There is no relationship between them:
VMXON region is created per logical processor and used by it for VMX ops.
VMCS region is created for each guest vcpu and used both by the hypervisor and the processor.
> It will be appreciated if you can make some comments.
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMXON region vs VMCS region?
2012-01-31 12:29 ` Orit Wasserman
@ 2012-02-01 1:53 ` Zhi Yong Wu
2012-02-07 15:09 ` Zhi Yong Wu
1 sibling, 0 replies; 5+ messages in thread
From: Zhi Yong Wu @ 2012-02-01 1:53 UTC (permalink / raw)
To: Orit Wasserman; +Cc: KVM mailing list
On Tue, Jan 31, 2012 at 8:29 PM, Orit Wasserman <owasserm@redhat.com> wrote:
> On 01/31/2012 05:35 AM, Zhi Yong Wu wrote:
>> HI,
>>
>> Can anyone let me know know the difference between VMXON region and
>> VMCS region? relationship?
>>
>
> There is no relationship between them:
> VMXON region is created per logical processor and used by it for VMX ops.
> VMCS region is created for each guest vcpu and used both by the hypervisor and the processor.
Great, thanks.
>
>> It will be appreciated if you can make some comments.
>>
>>
>
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMXON region vs VMCS region?
2012-01-31 12:29 ` Orit Wasserman
2012-02-01 1:53 ` Zhi Yong Wu
@ 2012-02-07 15:09 ` Zhi Yong Wu
[not found] ` <4F3164D5.4040500@redhat.com>
1 sibling, 1 reply; 5+ messages in thread
From: Zhi Yong Wu @ 2012-02-07 15:09 UTC (permalink / raw)
To: Orit Wasserman; +Cc: KVM mailing list
On Tue, Jan 31, 2012 at 8:29 PM, Orit Wasserman <owasserm@redhat.com> wrote:
> On 01/31/2012 05:35 AM, Zhi Yong Wu wrote:
>> HI,
>>
>> Can anyone let me know know the difference between VMXON region and
>> VMCS region? relationship?
>>
>
> There is no relationship between them:
> VMXON region is created per logical processor and used by it for VMX ops.
VMXON is created per VMM, not per logical processor, right?
Intel spec says as below:
Before entering VMX operation, the host VMM allocates a VMXON region. A VMM can
host several virtual machines and have many VMCSs active under its management.
A unique VMCS region is required for each virtual machine; a VMXON region is
^^^ if each vm has multiple logical processor, A unique VMCS region is
required for each logical processor.
required for the VMM itself.
> VMCS region is created for each guest vcpu and used both by the hypervisor and the processor.
I suddently have one question about logical processor and guest vcpu.
What is their relationship?
>
>> It will be appreciated if you can make some comments.
>>
>>
>
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: VMXON region vs VMCS region?
[not found] ` <4F3164D5.4040500@redhat.com>
@ 2012-02-08 0:48 ` Zhi Yong Wu
0 siblings, 0 replies; 5+ messages in thread
From: Zhi Yong Wu @ 2012-02-08 0:48 UTC (permalink / raw)
To: Orit Wasserman; +Cc: KVM mailing list
On Wed, Feb 8, 2012 at 1:52 AM, Orit Wasserman <owasserm@redhat.com> wrote:
> On 02/07/2012 05:09 PM, Zhi Yong Wu wrote:
>> On Tue, Jan 31, 2012 at 8:29 PM, Orit Wasserman <owasserm@redhat.com> wrote:
>>> On 01/31/2012 05:35 AM, Zhi Yong Wu wrote:
>>>> HI,
>>>>
>>>> Can anyone let me know know the difference between VMXON region and
>>>> VMCS region? relationship?
>>>>
>>>
>>> There is no relationship between them:
>>> VMXON region is created per logical processor and used by it for VMX ops.
>> VMXON is created per VMM, not per logical processor, right?
> Not exactly ,it is per logical processor the only thing that it contain that can effect the VMM is the VMCS version.
> you can't do VMXON twice on the same logical processor (it will fail).
> For example if kvm is run in non exclusive mode it will will vmxon/vmxoff before/after running the guest
ah, this case is for nested KVM
> (I think vmware does it too). In exclusive mode it does VMXON when the kvm module is loaded and VMOFF when it is removed, no other VMM can use VMX on that logical processor.
> So in theory, one VMM can do the VMXON and the other can just use VMX without doing VMXON but it has to use the same VMCS version (there are changes to the VMCS structure in different versions).
very wonderful, thanks.
>
>>
>> Intel spec says as below:
>>
>> Before entering VMX operation, the host VMM allocates a VMXON region. A VMM can
>> host several virtual machines and have many VMCSs active under its management.
>> A unique VMCS region is required for each virtual machine; a VMXON region is
>> ^^^ if each vm has multiple logical processor, A unique VMCS region is
>> required for each logical processor.
>> required for the VMM itself.
>
>>
>>> VMCS region is created for each guest vcpu and used both by the hypervisor and the processor.
>> I suddently have one question about logical processor and guest vcpu.
>> What is their relationship?
>>
>>>
>>>> It will be appreciated if you can make some comments.
>>>>
>>>>
>>>
>>
>>
>>
>
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-02-08 0:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 3:35 VMXON region vs VMCS region? Zhi Yong Wu
2012-01-31 12:29 ` Orit Wasserman
2012-02-01 1:53 ` Zhi Yong Wu
2012-02-07 15:09 ` Zhi Yong Wu
[not found] ` <4F3164D5.4040500@redhat.com>
2012-02-08 0:48 ` Zhi Yong Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox