From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796221684; b=TqQO4nEO+f78T8oHlSLLTlQncMpNClbM6IRDn+/bxD48dhZasIGGwsQls3dixrH/GByz YRH038ZHg7h9ig8LX+LrkEys89sOIY8OPgz5/c34AlMsP7Qc5S7rgaKlth07KYFS9Ns6M 0LyR8uKo9OjipPijzqkxUmV9jMeVmKNICU8fxv16Dfy9OqjUzL/F7Z7RisyoPnBlZxqzz cBjNPTbzbGyKSgIUjkNk0suAyuDYmsh2XBrqzMnEACP8quKaniyniaaqaNV9BvhBhGoH/ dY/jVaQRFE3orp2QUEf8RcTEmNrj7omvcUY4jr9DX/1z77iSfluBCALXSzbCbRcD9MA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221684; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=+KwbAE8IQSVN62O8qPLevA0q0RuraNAOBrtAoUk0Oqs=; b=KxwLGhDAQdoAg1iUE3lmZuiulOLPAbflg+Dhd1G+f4tE/XHNdDhTuORgIp+YPwDziIcL UnydaDkNWEBipVEOVJRKJ38hf9PBJD+x+1vCnXKvYSzN0ZtiHh7M2hufkVJvS09VbqaNv MnudPdFrmKMU1XXXEZ64pr+BgkQAKsEiALTG9/Ne9enxHuLD3GEmZcXV9dYfSdcbY/eYi rSx13kkr8ZX9zDieLdoVsu/UNID2R1TMwbp7k/9yG1WxMlGoVVhlZQ9XTa0x8BsvZtO8J 5o3aGphotgv4J00IEY49uBW5p31RS+Er+wJo1mC7S6gouxk/M2R9lXAhfuz815Kj85g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XAWt7Ctx; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1C72606A31A for ; Wed, 2 Dec 2026 14:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XAWt7Ctx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 912D21F00893; Wed, 2 Dec 2026 14:28:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796221683; bh=+KwbAE8IQSVN62O8qPLevA0q0RuraNAOBrtAoUk0Oqs=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=XAWt7Ctx9X1BxDKiht1KtxGG91s9QeLiYhTQqb98j87/DovWShISYURB8UrM696lA xlRT6S7dbJORKBDgaP7/FfTRtMuRTT51B+6mq5XPMD5qlfb61LMEPOEzo+lxL/mfLm 1D+ZNj9wxlWKvSPWFO1Uh4ripfozCN6fFYGFkN6s74QZgELwiXeu+dLwykCFz7pbEN TsWrhv7yhyBlQdIzv76Q37ZB6EVcdnm6c/XKNSK5QTwGmGCs475jyIjLQMV6UU42yB a6bwerPaEPGBATQfAXcVtgcywEKU432qiBAcIxNPpcHe24b3zwenBAT5UgNbhT2rW2 1GT5UzUahCYcQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] KVM: s390: arm64: Drop an incomplete MMIO access when resetting a vcpu Reply-To: sashiko-reviews@lists.linux.dev To: "Steffen Eiden" Cc: linux-s390@vger.kernel.org, "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" In-Reply-To: <20261202-reset-v1-1-7a0cd3726655@linux.ibm.com> References: <20261202-reset-v1-1-7a0cd3726655@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 14:28:03 +0000 X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > This fix is a port from Dan's fix to KVM/arm64. See Link. >=20 > When a vcpu exits to userspace for an MMIO access, the next KVM_RUN > completes it. So for a read, the next run increments the PC counter > and copies data from userspace to the destination vcpu register. >=20 > A reset should cancel the MMIO read/write access. Otherwise the next > run will copy memory from userspace to the vcpu and increment the PC > which skips the first instruction. >=20 > Clear vcpu->mmio_needed in kvm_reset_vcpu() >=20 > Fixes: 0630ce34a00d ("KVM: s390: arm64: Implement vCPU IOCTLs") > Reported-by: Dan Carpenter > Link: https://lore.kernel.org/all/20261130-double_exception_v3-v3-2-86485= 6664b26@pereq.eu > Signed-off-by: Steffen Eiden Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-reset-v1-1= -7a0cd3726655@linux.ibm.com?part=3D1