Re: [PATCH 1/2] LoongArch: KVM: Fix PC double advance in kernel MMIO read fast path

Huacai Chen <[email protected]>
Newsgroups org.kernel.vger.stable,dev.linux.lists.loongarch,org.kernel.vger.kvm,org.kernel.vger.linux-kernel
Message-ID <CAAhV-H6SfckPJkB=ZcXT5w_6mpkf8kZyaMHes64Ep_56atvPLA@mail.gmail.com>
On Sat, Jul 25, 2026 at 11:38 AM Tao Cui <[email protected]> wrote:
>
> From: Tao Cui <[email protected]>
>
> > In the in-kernel MMIO read fast path of kvm_emu_mmio_read(),
> > kvm_complete_mmio_read() already advances the guest PC via update_pc().
> > The explicit update_pc() call right after it advances the PC a second
> > time, so PC moves forward by 8 instead of 4 and the instruction
> > following the MMIO read is silently skipped.
>
> Good catch!
> Reviewed-by: Tao Cui <[email protected]>
Applied, thanks.

Huacai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.