From patchwork Tue Dec 1 14:36:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Lalancette X-Patchwork-Id: 63966 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB1EbIZ3013449 for ; Tue, 1 Dec 2009 14:37:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752667AbZLAOhA (ORCPT ); Tue, 1 Dec 2009 09:37:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751940AbZLAOhA (ORCPT ); Tue, 1 Dec 2009 09:37:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11125 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbZLAOg7 (ORCPT ); Tue, 1 Dec 2009 09:36:59 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB1Eb5YW004965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 1 Dec 2009 09:37:05 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB1Eb36K002533; Tue, 1 Dec 2009 09:37:04 -0500 From: Chris Lalancette To: kvm@vger.kernel.org Cc: Chris Lalancette Subject: [PATCH 01/12] Fix up some comments around the source tree. Date: Tue, 1 Dec 2009 15:36:30 +0100 Message-Id: <1259678201-11203-2-git-send-email-clalance@redhat.com> In-Reply-To: <1259678201-11203-1-git-send-email-clalance@redhat.com> References: <1259678201-11203-1-git-send-email-clalance@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 3de0b37..68fe7f2 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -2628,7 +2628,7 @@ static void svm_complete_interrupts(struct vcpu_svm *svm) break; case SVM_EXITINTINFO_TYPE_EXEPT: /* In case of software exception do not reinject an exception - vector, but re-execute and instruction instead */ + vector, but re-execute an instruction instead */ if (is_nested(svm)) break; if (kvm_exception_is_soft(vector)) diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 38a2d20..53f3166 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -164,10 +164,10 @@ static int ioapic_deliver(struct kvm_ioapic *ioapic, int irq) irqe.shorthand = 0; #ifdef CONFIG_X86 - /* Always delivery PIT interrupt to vcpu 0 */ + /* Always deliver PIT interrupt to vcpu 0 */ if (irq == 0) { irqe.dest_mode = 0; /* Physical mode. */ - /* need to read apic_id from apic regiest since + /* need to read apic_id from apic register since * it can be rewritten */ irqe.dest_id = ioapic->kvm->bsp_vcpu->vcpu_id; } diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index f92ba13..748900e 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1180,7 +1180,7 @@ static int create_vcpu_fd(struct kvm_vcpu *vcpu) } /* - * Creates some virtual cpus. Good luck creating more than one. + * Creates a virtual cpu. */ static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id) {