From nobody Fri Sep 25 07:55:54 2026 Received: from mta0.migadu.com (out-169.mta0.migadu.com [91.218.175.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4E7F4968EE for ; Tue, 15 Sep 2026 08:44:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789461893; cv=none; b=M7nzchAbjKFv8lw1hGjtZ9zzLdXk/ivbwNR74ChrrDMRcLK/ATLrYSzf20T3ANS4FD8LoIUzTPx0byN0Sdh3Qi/ntyXoiHilWJt9DI1EXvltF3hSb7DK7GH/tiFsAWpmAgNs3UBgYUtofXNu7bSGTID4HBVtd/S6EGV/dVVgAtk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789461893; c=relaxed/simple; bh=cfJHLD9q9zHmMljo9vPmqqbTUt1+su2cEdMIw8eDGo0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XeOrnH1YCNWqSGZJ2PUilwKls8KPjUCJmY9Ksb7yfRuJ8UdbFRKQZuP0/ZgdZermfbIVwOooShW9c13bmjvOI5B2XdbRfjeNVy0QrvRbjtbiBGYSY0A7PZgP8fE5NDkDsgjMFdWN/Dkg8YjIYQyxt2J3v1+eggxPncPmrDrhPeM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=wWIoWV5c; arc=none smtp.client-ip=91.218.175.169 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) header.d=linux.dev header.i=@linux.dev header.b="wWIoWV5c" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=cfJHLD9q9zHmMljo9vPmqqbTUt1+su2cEdMIw8eDGo0=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789461887; v=1; x=1790066687; b=wWIoWV5cpeF748EZKF4qUjmySh+AeOazXhk3ZpzY9g4wi78jsEF6B7/+HQb3FJKrpDn30guD Jbh65kcGcmxMcaRUxAxNVQUNgX09uNekzmWpiofDl1xfyETXnYybGmTVNM500yHhsrX6RnhjhcD 9J2Bcb3uhcqMz7YIJAgT33SI= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 53447c2444ce877a; Tue, 15 Sep 2026 08:44:46 +0000 X-Mizu-Trace-ID: 53447c2444ce877a X-Migadu-Flow: FLOW_OUT From: Fuad Tabba To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Madhavan Srinivasan Cc: Sean Christopherson , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Steffen Eiden , Nicholas Piggin , Will Deacon , Fuad Tabba , kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] KVM: Fix comments that refer to the non-existent VCPU_RUN ioctl Date: Tue, 15 Sep 2026 09:44:39 +0100 Message-Id: <20260915084441.3846947-2-fuad.tabba@linux.dev> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260915084441.3846947-1-fuad.tabba@linux.dev> References: <20260915084441.3846947-1-fuad.tabba@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Neither the VCPU_RUN in kvm_main.c nor the VCPU RUN in kvm_host.h names an ioctl that exists. The one that enters the guest is KVM_RUN, so refer to it by that name. Signed-off-by: Fuad Tabba --- include/linux/kvm_host.h | 2 +- virt/kvm/kvm_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 03bfc92864b6e..acae5a61e7f8f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -562,7 +562,7 @@ static inline int kvm_vcpu_exiting_guest_mode(struct kv= m_vcpu *vcpu) /* * The memory barrier ensures a previous write to vcpu->requests cannot * be reordered with the read of vcpu->mode. It pairs with the general - * memory barrier following the write of vcpu->mode in VCPU RUN. + * memory barrier following the write of vcpu->mode in KVM_RUN. */ smp_mb__before_atomic(); return cmpxchg(&vcpu->mode, IN_GUEST_MODE, EXITING_GUEST_MODE); diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 65eb26a0520d8..cc391b0666a6d 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -470,7 +470,7 @@ static void kvm_vcpu_destroy(struct kvm_vcpu *vcpu) kvm_dirty_ring_free(&vcpu->dirty_ring); =20 /* - * No need for rcu_read_lock as VCPU_RUN is the only place that changes + * No need for rcu_read_lock as KVM_RUN is the only place that changes * the vcpu->pid pointer, and at destruction time all file descriptors * are already gone. */ --=20 2.39.5 From nobody Fri Sep 25 07:55:54 2026 Received: from mta0.migadu.com (out-193.mta0.migadu.com [91.218.175.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A84C497B60 for ; Tue, 15 Sep 2026 08:44:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789461894; cv=none; b=X0INUCozN879hnYGqTEjrbUKp3RWZ4P48U4mfX6q8qXIJzAE2M7+IO8ACAGZnKsp7nVhGj0y5wu5ZffZ+Z/SOtLnFcrnfoTpCRqrwHpftSqZAhxbyUK3wy0fRY6VGR1qQD1boK89OldzMNMVxsnTjaEHn9P1GJYA9IZxX6caho4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789461894; c=relaxed/simple; bh=bSEkY03asFd7ncFCJXorUGr/EvrnfLd1LZhh/lJlyYA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=g7yt3/Xo9Jn97tXDxG7sKuEGgQglmtROCfnU3rvA/Wrz7lNVc8fdHiBQmDQASChH2+FBrkxIavlfIFYfgw7DDGjNLsA/7ScnMiDi6RN7CmpNXlH2nNomStWKCZjsxR1At8G6EEqBgoP18uUPvz1FpxwfLxsXDmUR5hP8IBC1hZ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=EezWVo4o; arc=none smtp.client-ip=91.218.175.193 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) header.d=linux.dev header.i=@linux.dev header.b="EezWVo4o" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=bSEkY03asFd7ncFCJXorUGr/EvrnfLd1LZhh/lJlyYA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789461887; v=1; x=1790066687; b=EezWVo4ojNYwRbqRZ9QVKaV/VvM4F7cetwiZhl4pWHApYZeli8SwJcUsKC3MiXJBUdtF5mpN Co9Fl/tT/ezz6qBcsetMBkdW69exvfzc6db1H5Qh/nwWXLdbaMHXXr4/ENx6bC06ZYmlUI5GYYn hq/WdrpGC8/M8sRZqLEHXRpc= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 08fbd8a02e04e0fe; Tue, 15 Sep 2026 08:44:47 +0000 X-Mizu-Trace-ID: 08fbd8a02e04e0fe X-Migadu-Flow: FLOW_OUT From: Fuad Tabba To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Madhavan Srinivasan Cc: Sean Christopherson , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Steffen Eiden , Nicholas Piggin , Will Deacon , Fuad Tabba , kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] KVM: arm64: Fix references to the non-existent VCPU_RUN ioctl Date: Tue, 15 Sep 2026 09:44:40 +0100 Message-Id: <20260915084441.3846947-3-fuad.tabba@linux.dev> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260915084441.3846947-1-fuad.tabba@linux.dev> References: <20260915084441.3846947-1-fuad.tabba@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There is no VCPU_RUN ioctl. The one that enters the guest is KVM_RUN, so refer to it by that name. Signed-off-by: Fuad Tabba --- Documentation/virt/kvm/arm/pkvm.rst | 2 +- arch/arm64/kvm/arm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/virt/kvm/arm/pkvm.rst b/Documentation/virt/kvm/a= rm/pkvm.rst index 514992a79a833..18d8afe36ebce 100644 --- a/Documentation/virt/kvm/arm/pkvm.rst +++ b/Documentation/virt/kvm/arm/pkvm.rst @@ -67,7 +67,7 @@ largely due to the lack of MMU notifiers: then it will either return ``-EFAULT`` or forcefully reclaim the memory pages. Reclaimed memory is zeroed by the hypervisor and a subsequent attempt to access it in the pVM will return ``-EFAULT`` - from the ``VCPU_RUN`` ioctl(). + from the ``KVM_RUN`` ioctl(). =20 CPU state isolation ------------------- diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index 8b080804bc90b..a18ec13bd6677 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -1263,7 +1263,7 @@ static int noinstr kvm_arm_vcpu_enter_exit(struct kvm= _vcpu *vcpu) * kvm_arch_vcpu_ioctl_run - the main VCPU run function to execute guest c= ode * @vcpu: The VCPU pointer * - * This function is called through the VCPU_RUN ioctl called from user spa= ce. It + * This function is called through the KVM_RUN ioctl called from user spac= e. It * will execute VM code in a loop until the time slice for the process is = used * or some emulation is needed from user space in which case the function = will * return with return value 0 and with the kvm_run structure filled in wit= h the --=20 2.39.5 From nobody Fri Sep 25 07:55:54 2026 Received: from mta0.migadu.com (out-208.mta0.migadu.com [91.218.175.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 075CD49C4A0 for ; Tue, 15 Sep 2026 08:44:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.208 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789461897; cv=none; b=rixJt4xOaGeB+B3wuZXJQmVSZMrOvA0HxCMWaYDPakdQRigXRgM/MmQsv/C7pvkpDXASjR654PVTbJYPoXcAIh8BJ6S0Jcv0jSxPB7JxO7gv6PWvLwazboPjWub5045Lar2/8depX/SR/LQBYBQoE/2fN7hKeZAt7DbYLClRxqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789461897; c=relaxed/simple; bh=+4rM/vb9bgnywxjBITcpXSRkVe9CVyh/SFm0f0Uf3bA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=O+CFCeXA9gvdGJmuhN1VUE4Qt6p35M2y48P40djXbbR4DL1+v8JYyiBey8HhvixAqc59X6GQNQ626w3H9I6KfP+4dVRhRaA8rZYIp3hi8pN7BAuMI2V5hknwgEd1ONNYhavPUnSY5tgJJaDyHZXbBV7IjVVuRT6w7qu+QqiZ2X0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=UGCwd+Zj; arc=none smtp.client-ip=91.218.175.208 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) header.d=linux.dev header.i=@linux.dev header.b="UGCwd+Zj" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=+4rM/vb9bgnywxjBITcpXSRkVe9CVyh/SFm0f0Uf3bA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1789461892; v=1; x=1790066692; b=UGCwd+ZjQJHmbHAhhb/dUJy+HvKCo+/LTTvnT6HZxGYBO/JvY31hKXEtgQDE+9ACWM9gbcCk rqmJJiDd5o5jJIXIPtP/0TiiCOGTO3XTMHteXLWJ9o29gV68r6nniisNizEUt5INJ2xMlFAhSZv 6BxYO+5Qm9VjYB6w/HoM81pk= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id bf7d1fed5110460d; Tue, 15 Sep 2026 08:44:52 +0000 X-Mizu-Trace-ID: bf7d1fed5110460d X-Migadu-Flow: FLOW_OUT From: Fuad Tabba To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Madhavan Srinivasan Cc: Sean Christopherson , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Steffen Eiden , Nicholas Piggin , Will Deacon , Fuad Tabba , kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] KVM: PPC: Book3S HV: Fix comment naming a non-existent KVM_VCPU_RUN ioctl Date: Tue, 15 Sep 2026 09:44:41 +0100 Message-Id: <20260915084441.3846947-4-fuad.tabba@linux.dev> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260915084441.3846947-1-fuad.tabba@linux.dev> References: <20260915084441.3846947-1-fuad.tabba@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There is no KVM_VCPU_RUN ioctl. The one that enters the guest is KVM_RUN, so refer to it by that name. Signed-off-by: Fuad Tabba Reviewed-by: Amit Machhiwal Reviewed-by: Gautam Menghani --- arch/powerpc/kvm/book3s_hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index dbac3573b2c89..db090f4c5e95b 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -269,7 +269,7 @@ static void kvmppc_fast_vcpu_kick_hv(struct kvm_vcpu *v= cpu) * stolen time for a vcore when it is inactive, or for a vcpu * when it is in state RUNNING or NOTREADY. NOTREADY is a bit of * a misnomer; it means that the vcpu task is not executing in - * the KVM_VCPU_RUN ioctl, i.e. it is in userspace or elsewhere in + * the KVM_RUN ioctl, i.e. it is in userspace or elsewhere in * the kernel. We don't have any way of dividing up that time * between time that the vcpu is genuinely stopped, time that * the task is actively working on behalf of the vcpu, and time --=20 2.39.5