* Ring privilege of host linux kernel
@ 2013-03-08 3:56 lim4
2013-03-08 11:42 ` Gleb Natapov
0 siblings, 1 reply; 3+ messages in thread
From: lim4 @ 2013-03-08 3:56 UTC (permalink / raw)
To: kvm
As we have known, in KVM full virtualization, guest VM is running in
non-root mode and KVM is running in root mode. While, in non-root mode,
guest kernel is running in Ring 0 and Apps are running in Ring 3.
However, what about the ring privilege for host linux?
In my knowledge, host linux is not controlled by VMX instructions and
VMCS/VMCB. therefore, host linux should be running in root mode. Before
we install KVM, host linux just run in Ring 0 (at that time, there is no
root mode or non-root mode because VMX is not active). Hence, after we
install KVM module, host linux kernel should be still in Ring 0 of root
mode and Apps in host should run in Ring 3 of root mode. Is KVM running
in higher privileged mode like Ring -1 of root mode or also running in
Ring 0 of root mode?
Maybe my thoughts about KVM privilege ring is not correct. :-) Please
give me some comments and I will really appreciate for your help.
Thank you,
Best Regards,
Min Li
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Ring privilege of host linux kernel
2013-03-08 3:56 Ring privilege of host linux kernel lim4
@ 2013-03-08 11:42 ` Gleb Natapov
2013-03-08 14:27 ` Min Li
0 siblings, 1 reply; 3+ messages in thread
From: Gleb Natapov @ 2013-03-08 11:42 UTC (permalink / raw)
To: lim4@mymail.vcu.edu; +Cc: kvm
On Thu, Mar 07, 2013 at 10:56:34PM -0500, lim4@mymail.vcu.edu wrote:
> As we have known, in KVM full virtualization, guest VM is running in
> non-root mode and KVM is running in root mode. While, in non-root
> mode, guest kernel is running in Ring 0 and Apps are running in Ring
> 3. However, what about the ring privilege for host linux?
>
> In my knowledge, host linux is not controlled by VMX instructions
> and VMCS/VMCB. therefore, host linux should be running in root mode.
> Before we install KVM, host linux just run in Ring 0 (at that time,
> there is no root mode or non-root mode because VMX is not active).
> Hence, after we install KVM module, host linux kernel should be
> still in Ring 0 of root mode and Apps in host should run in Ring 3
> of root mode. Is KVM running in higher privileged mode like Ring -1
> of root mode or also running in Ring 0 of root mode?
>
KVM and the Linux kernel are running in Ring 0 in root mode.
--
Gleb.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Ring privilege of host linux kernel
2013-03-08 11:42 ` Gleb Natapov
@ 2013-03-08 14:27 ` Min Li
0 siblings, 0 replies; 3+ messages in thread
From: Min Li @ 2013-03-08 14:27 UTC (permalink / raw)
To: Gleb Natapov; +Cc: lim4@mymail.vcu.edu, kvm, lim4
On 03/08/2013 06:42 AM, Gleb Natapov wrote:
> On Thu, Mar 07, 2013 at 10:56:34PM -0500, lim4@mymail.vcu.edu wrote:
>> As we have known, in KVM full virtualization, guest VM is running in
>> non-root mode and KVM is running in root mode. While, in non-root
>> mode, guest kernel is running in Ring 0 and Apps are running in Ring
>> 3. However, what about the ring privilege for host linux?
>>
>> In my knowledge, host linux is not controlled by VMX instructions
>> and VMCS/VMCB. therefore, host linux should be running in root mode.
>> Before we install KVM, host linux just run in Ring 0 (at that time,
>> there is no root mode or non-root mode because VMX is not active).
>> Hence, after we install KVM module, host linux kernel should be
>> still in Ring 0 of root mode and Apps in host should run in Ring 3
>> of root mode. Is KVM running in higher privileged mode like Ring -1
>> of root mode or also running in Ring 0 of root mode?
>>
> KVM and the Linux kernel are running in Ring 0 in root mode.
>
> --
> Gleb.
Hi, Gleb
Really appreciate for your answer because this question has
confused me for several days.
Best,
Min
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-08 14:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 3:56 Ring privilege of host linux kernel lim4
2013-03-08 11:42 ` Gleb Natapov
2013-03-08 14:27 ` Min Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox