From: Dan Carpenter <dan@pereq.eu>
To: Steffen Eiden <seiden@linux.ibm.com>
Cc: Andreas Grapentin <gra@linux.ibm.com>,
Marc Zyngier <maz@kernel.org>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Janosch Frank <frankja@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>,
David Hildenbrand <david@kernel.org>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
kvm@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [PATCH] KVM: s390: arm64: Drop an incomplete MMIO access when resetting a vcpu
Date: Wed, 2 Dec 2026 17:31:22 +0300 [thread overview]
Message-ID: <axArupiMDjrp5wmW@stanley.mountain> (raw)
In-Reply-To: <20261202-reset-v1-1-7a0cd3726655@linux.ibm.com>
On Wed, Dec 02, 2026 at 03:20:02PM +0100, Steffen Eiden wrote:
> This fix is a port from Dan's fix to KVM/arm64. See Link.
>
> 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.
>
> 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.
>
> Clear vcpu->mmio_needed in kvm_reset_vcpu()
>
> Fixes: 0630ce34a00d ("KVM: s390: arm64: Implement vCPU IOCTLs")
> Reported-by: Dan Carpenter <dan@pereq.eu>
> Link: https://lore.kernel.org/all/20261130-double_exception_v3-v3-2-864856664b26@pereq.eu
> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
> ---
> @Dan: I copied the commit message word by word and the fix on our side
> is very similar to the one on KVM/arm64. I hope this is OK for you.
>
Always happy to get a Reported-by tag. :)
regards,
dan carpenter
next prev parent reply other threads:[~2026-12-02 14:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 14:20 [PATCH] KVM: s390: arm64: Drop an incomplete MMIO access when resetting a vcpu Steffen Eiden
2026-12-02 14:28 ` sashiko-bot
2026-12-02 14:31 ` Dan Carpenter [this message]
2026-12-02 14:52 ` Andreas Grapentin
2026-12-02 15:04 ` Christian Borntraeger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axArupiMDjrp5wmW@stanley.mountain \
--to=dan@pereq.eu \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=david@kernel.org \
--cc=frankja@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=gra@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=maz@kernel.org \
--cc=seiden@linux.ibm.com \
--cc=svens@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox