From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.67 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794387318; b=qVAD/n5KEkQw4knMJJnrXO45e3JH9pWkaBghdye7+f53ubIYu8yhKY91BDgyVh1Mx8OC 08KEo1CI+RG/SsfsTZoYHqvmZkwpbEvA+xn97OeXExN8/dvWgCO1MczOutJ5KFb7U+QUw 5WjohS7xuCVRfYEma+KlyS/DderbgXKn2vSjbk1Nzt1st9otbAH9MSy08xFfc/NqXi9IV e9tD/3a22aYp2JS45aCX1BIGHKZ3yh0MDYIsgOI1AIyzPRWZuGSC5HiGr7thbKDFcSpdd bix02XvQZvJOQlf25AxFbVU7z+50iSbdwyd5fBRBFKvPUeBXlQksyzkJIhY12rsyWQg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794387318; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=UR6UuX2zkKp3d1XiHLTZEcqOFwHxeBRHDTS4u//6Cio=; b=4iTljuVtwBVNHPQYaEgaFBXVZ9H8sVxare0LZzXGKhnV7ASyf2OrGj0IX9RBT3+5mtDO 8JshPXoVHTOiS3CR752j4ox233uj+C/pv9ojIvYer4Le7cjZsuMpFJXaxXdbdSfJ+ZKDH SjEZXOABtiJmLJVv4XBKVknN+vAla1xn7hKrA/EK9KsmzYywk5zyEjZELkcpS3UP8MGiC 8MsTW01lD+3hJ7UXicLZb57VZYt59P5l58LghraJIXHMeQjK4nzr3D7WEEx7LSWlj9ad1 D+n2+tmbsRlukkik7gdcM9VB193Gt9OAiVR0goO1TzmOP2cD+H00/qYIc0oqmXEaVXg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=f80xOZUt; arc=none smtp.remote-ip=91.218.175.67 Received: from mta0.migadu.com (out-67.mta0.migadu.com [91.218.175.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7283B60A6F60 for ; Wed, 11 Nov 2026 08:55:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7283B60A6F60 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=f80xOZUt X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=Ns66tcmnhfnZMafbIPx+GLb8OcZk6avcw0DU4emgRrg=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1794387315; v=1; x=1794992115; b=f80xOZUtsXEmBYk4SHZ6i+UB5Q6jhrtXXjQ67QcxcsoexC5RrLGlvaK77Q1A4z0QohgwVmSX D36h4uF/3tfKE/0wNT2tWGliM87sNKQkadJGHLTWNPlO3hHJ+DuUo/tU28JGn9lLzE6A6h1RjsU /0kOcf4R6lRy081dmbYjhWAk= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 3863ed00744c8417; Wed, 11 Nov 2026 08:55:14 +0000 X-Mizu-Trace-ID: 3863ed00744c8417 X-Migadu-Flow: FLOW_OUT From: Fuad Tabba To: Paolo Bonzini , Sean Christopherson Cc: kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Huacai Chen , linux-mips@vger.kernel.org, Will Deacon , Fuad Tabba Subject: [PATCH 7/7] KVM: Fix typos in comments Date: Wed, 11 Nov 2026 08:54:48 +0000 Message-ID: <20261111085448.1130701-8-fuad.tabba@linux.dev> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261111085448.1130701-1-fuad.tabba@linux.dev> References: <20261111085448.1130701-1-fuad.tabba@linux.dev> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix typos in comments in the generic KVM code and in the KVM uAPI header. Signed-off-by: Fuad Tabba --- include/linux/kvm_host.h | 10 +++++----- include/uapi/linux/kvm.h | 6 +++--- virt/kvm/binary_stats.c | 2 +- virt/kvm/eventfd.c | 2 +- virt/kvm/guest_memfd.c | 2 +- virt/kvm/kvm_main.c | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 21207d234618a..f94fada229053 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -105,7 +105,7 @@ #define KVM_PFN_ERR_NEEDS_IO (KVM_PFN_ERR_MASK + 4) /* - * error pfns indicate that the gfn is in slot but faild to + * error pfns indicate that the gfn is in slot but failed to * translate it to pfn on host. */ static inline bool is_error_pfn(kvm_pfn_t pfn) @@ -174,7 +174,7 @@ static inline bool kvm_is_error_gpa(gpa_t gpa) #define KVM_REQUEST_ARCH_BASE 8 /* - * KVM_REQ_OUTSIDE_GUEST_MODE exists is purely as way to force the vCPU to + * KVM_REQ_OUTSIDE_GUEST_MODE exists purely as a way to force the vCPU to * OUTSIDE_GUEST_MODE. KVM_REQ_OUTSIDE_GUEST_MODE differs from a vCPU "kick" * in that it ensures the vCPU has reached OUTSIDE_GUEST_MODE before continuing * on. A kick only guarantees that the vCPU is on its way out, e.g. a previous @@ -2185,7 +2185,7 @@ static inline int mmu_invalidate_retry_gfn(struct kvm *kvm, * If mmu_invalidate_in_progress is non-zero, then the range maintained * by kvm_mmu_notifier_invalidate_range_start contains all addresses * that might be being invalidated. Note that it may include some false - * positives, due to shortcuts when handing concurrent invalidations. + * positives, due to shortcuts when handling concurrent invalidations. */ if (unlikely(kvm->mmu_invalidate_in_progress)) { /* @@ -2471,7 +2471,7 @@ void kvm_arch_update_irqfd_routing(struct kvm_kernel_irqfd *irqfd, #endif /* CONFIG_HAVE_KVM_IRQ_BYPASS */ #ifdef __KVM_HAVE_INVALID_WAKEUPS -/* If we wakeup during the poll time, was it a sucessful poll? */ +/* If we wakeup during the poll time, was it a successful poll? */ static inline bool vcpu_valid_wakeup(struct kvm_vcpu *vcpu) { return vcpu->valid_wakeup; @@ -2526,7 +2526,7 @@ static inline int kvm_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu) /* * If more than one page is being (un)accounted, @virt must be the address of - * the first page of a block of pages what were allocated together (i.e + * the first page of a block of pages that were allocated together (i.e * accounted together). * * kvm_account_pgtable_pages() is thread-safe because mod_lruvec_page_state() diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 951b891b8ae60..3d709737c3f83 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -508,7 +508,7 @@ struct kvm_run { /* * shared registers between kvm and userspace. * kvm_valid_regs specifies the register classes set by the host - * kvm_dirty_regs specified the register classes dirtied by userspace + * kvm_dirty_regs specifies the register classes dirtied by userspace * struct kvm_sync_regs is architecture specific, as well as the * bits for kvm_valid_regs and kvm_dirty_regs */ @@ -1556,12 +1556,12 @@ struct kvm_dirty_gfn { * @flags: Some extra information for header, always 0 for now. * @name_size: The size in bytes of the memory which contains statistics * name string including trailing '\0'. The memory is allocated - * at the send of statistics descriptor. + * at the end of statistics descriptor. * @num_desc: The number of statistics the vm or vcpu has. * @id_offset: The offset of the vm/vcpu stats' id string in the file pointed * by vm/vcpu stats fd. * @desc_offset: The offset of the vm/vcpu stats' descriptor block in the file - * pointd by vm/vcpu stats fd. + * pointed by vm/vcpu stats fd. * @data_offset: The offset of the vm/vcpu stats' data block in the file * pointed by vm/vcpu stats fd. * diff --git a/virt/kvm/binary_stats.c b/virt/kvm/binary_stats.c index c772fe7be5dd7..654381d22480f 100644 --- a/virt/kvm/binary_stats.c +++ b/virt/kvm/binary_stats.c @@ -22,7 +22,7 @@ * @user_buffer: start address of userspace buffer * @size: requested read size from userspace * @offset: the start position from which the content will be read for the - * corresponding vm or vcp file descriptor + * corresponding vm or vcpu file descriptor * * The file content of a vm/vcpu file descriptor is now defined as below: * +-------------+ diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 81ed20ec0d4a1..73db4938d5a11 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -470,7 +470,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) /* * Register the irqfd with the eventfd by polling on the eventfd, and - * simultaneously and the irqfd to KVM's list. If there was en event + * simultaneously add the irqfd to KVM's list. If there was an event * pending on the eventfd prior to registering, manually trigger IRQ * injection. */ diff --git a/virt/kvm/guest_memfd.c b/virt/kvm/guest_memfd.c index 8c97a69b16dc0..3e02acf889396 100644 --- a/virt/kvm/guest_memfd.c +++ b/virt/kvm/guest_memfd.c @@ -376,7 +376,7 @@ static int kvm_gmem_release(struct inode *inode, struct file *file) * CPU0 CPU1 * kvm_gmem_get_pfn() * slot->gmem.file == A - * kvm_gmem_release()) + * kvm_gmem_release() * slot->gmem.file = NULL * * kvm_set_memory_region() diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index ba8f53ec3d718..65dc9d3eb8448 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1628,7 +1628,7 @@ static void kvm_swap_active_memslots(struct kvm *kvm, int as_id) { struct kvm_memslots *slots = kvm_get_inactive_memslots(kvm, as_id); - /* Grab the generation from the activate memslots. */ + /* Grab the generation from the active memslots. */ u64 gen = __kvm_memslots(kvm, as_id)->generation; WARN_ON(gen & KVM_MEMSLOT_GEN_UPDATE_IN_PROGRESS); @@ -3044,7 +3044,7 @@ static int hva_to_pfn_remapped(struct vm_area_struct *vma, /* * Remapped memory cannot be pinned in any meaningful sense. Bail if * the caller wants to pin the page, i.e. access the page outside of - * MMU notifier protection, and unsafe umappings are disallowed. + * MMU notifier protection, and unsafe mappings are disallowed. */ if (kfp->pin && !allow_unsafe_mappings) return -EINVAL; @@ -4044,7 +4044,7 @@ static bool vcpu_dy_runnable(struct kvm_vcpu *vcpu) /* * By default, simply query the target vCPU's current mode when checking if a * vCPU was preempted in kernel mode. All architectures except x86 (or more - * specifical, except VMX) allow querying whether or not a vCPU is in kernel + * specifically, except VMX) allow querying whether or not a vCPU is in kernel * mode even if the vCPU is NOT loaded, i.e. using kvm_arch_vcpu_in_kernel() * directly for cross-vCPU checks is functionally correct and accurate. */ -- 2.47.3