]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
qemu: fix iotlb_to_section() for different AddressSpace
authorQuan Sun <Quan.Sun@windriver.com>
Mon, 11 May 2026 20:52:02 +0000 (13:52 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 May 2026 11:20:04 +0000 (12:20 +0100)
commit1b09f50c4e607bb6f2b120fe3bf0141bac46a078
tree67f4cf3edaa881eaaeeed00a12d1f22372f1bccc
parent1331c5f2c49e448bc32ec364b13fecfdcf5e05f4
qemu: fix iotlb_to_section() for different AddressSpace

Backport upstream commit 854cd16e318e ("accel/tcg: Fix iotlb_to_section()
for different AddressSpace") to qemu 10.2.0.

The bug causes incorrect memory load/store when CPU access goes through
an IOMMUMemoryRegion that returns a different target AddressSpace, and the
fix replaces the section_index lookup with a direct MemoryRegionSection
pointer stored in CPUTLBEntryFull.

Note that the fix primarily targets ARM/RISC-V, but since it eliminates
iotlb_to_section() and performs the lookup based on CPUTLBEntryFull,
it may also help address some currently observed QEMU boot issues
on x86, e.g. the https://bugzilla.yoctoproject.org/show_bug.cgi?id=16259.

AI-Generated: kiro-cli

Signed-off-by: Quan Sun <Quan.Sun@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu/0001-accel-tcg-Fix-iotlb_to_section-for-different-Address.patch [new file with mode: 0644]