diff options
author | Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> | 2013-12-13 01:08:38 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-13 08:23:54 -0500 |
commit | 9357d93952143b178fa9d1f5095b8f273b01a1f1 (patch) | |
tree | f6f9138477fc3d90abcbd09ed83c11f6bf3d8c7e /arch | |
parent | c08ac06ab3f3cdb8d34376c3a8a5e46a31a62c8f (diff) |
KVM: x86: Add comment on vcpu_enter_guest()'s return value
Giving proper names to the 0 and 1 was once suggested. But since 0 is
returned to the userspace, giving it another name can introduce extra
confusion. This patch just explains the meanings instead.
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/x86.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4fb1ee619c1c..1dc0359e2095 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -5865,6 +5865,11 @@ static void vcpu_scan_ioapic(struct kvm_vcpu *vcpu) | |||
5865 | kvm_apic_update_tmr(vcpu, tmr); | 5865 | kvm_apic_update_tmr(vcpu, tmr); |
5866 | } | 5866 | } |
5867 | 5867 | ||
5868 | /* | ||
5869 | * Returns 1 to let __vcpu_run() continue the guest execution loop without | ||
5870 | * exiting to the userspace. Otherwise, the value will be returned to the | ||
5871 | * userspace. | ||
5872 | */ | ||
5868 | static int vcpu_enter_guest(struct kvm_vcpu *vcpu) | 5873 | static int vcpu_enter_guest(struct kvm_vcpu *vcpu) |
5869 | { | 5874 | { |
5870 | int r; | 5875 | int r; |