lkml.org 
[lkml]   [2010]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] KVM: Introduce VCPU-wide notion of guest-mode V2
On Mon, Nov 29, 2010, Joerg Roedel wrote about "[PATCH 0/3] KVM: Introduce VCPU-wide notion of guest-mode V2":
> Hi Avi, Hi Marcelo,
>
> here is the re-spin I promised. The change to V1 are essentially the
> renames:
>
> kvm_vcpu_enter_gm -> enter_guest_mode
> kvm_vcpu_leave_gm -> leave_guest_mode
> kvm_vcpu_is_gm -> is_guest_mode

I like this concept, and will be happy to change the nested VMX code to use
it as well.

One small thing: After the name change, it might not be obvious on first
sight that these functions refer to the state of the vcpu, not the state
of the actual CPU (which, if you think about it, is never in guest mode while
KVM code is running ;-)). I think that a short comment before the definition
of these functions might be useful - perhaps saying that they pertain to a
hypervisor running in the vcpu (i.e., nested virtualization).

Nadav.

--
Nadav Har'El | Wednesday, Dec 1 2010, 24 Kislev 5771
nyh@math.technion.ac.il |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |How do you get holy water? Boil the hell
http://nadav.harel.org.il |out of it.

\
 
 \ /
  Last update: 2010-12-01 09:13    [from the cache]
©2003-2011 Jasper Spaans