qemu/include/exec
Richard Henderson 497273cecf accel/tcg: Use TLB_FORCE_SLOW not TLB_MMIO for user-only plugins
In 6d03226b42 we set TLB_MMIO to a non-zero value for user-only
so that we could return a non-zero value from probe_* functions
so that we could force callers like Arm SVE vector moves to use
the slow path rather than direct access.  All for the sake of
exposing these accesses to plugins.

Back then, TLB_FORCE_SLOW did not exist, so TLB_MMIO seemed like
a reasonable solution.  However, user-only doesn't really have
MMIO and this has knock-on effects, like forcing Arm SVE first-fault
vector loads to stop.  Better to use TLB_FORCE_SLOW as a more exact
trigger for plugins.

Cc: qemu-stable@nongnu.org
Fixes: 6d03226b42 ("plugins: force slow path when plugins instrument memory ops")
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260702171057.47998-1-richard.henderson@linaro.org>
(cherry picked from commit b79a9b6e5b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-07-09 06:57:03 +03:00
..
abi_ptr.h
breakpoint.h
cpu-common.h cpus: Allocate maximum number of ASes supported by the arch 2026-01-22 10:48:46 +01:00
cpu-defs.h exec: Drop TARGET_PHYS_ADDR_SPACE_BITS 2026-02-25 23:46:04 +01:00
cpu-interrupt.h
cputlb.h accel/tcg: Fix iotlb_to_section() for different AddressSpace 2026-02-02 16:43:38 +01:00
gdbstub.h gdbstub: Emit base_register index in GDBFeature entries 2026-03-10 17:12:18 -07:00
helper-gen-common.h
helper-gen.h
helper-gen.h.inc
helper-head.h.inc
helper-info.c.inc
helper-proto-common.h
helper-proto.h
helper-proto.h.inc
hwaddr.h
icount.h
log.h
memattrs.h
memop.h system: Allow restricting the legacy MO_TE* 'native-endian' definitions 2026-01-22 10:48:45 +01:00
memopidx.h
mmap-lock.h
mmu-access-type.h
page-protection.h
page-vary.h page-vary: Build finalize_target_page_bits as common code 2026-02-26 00:12:07 +01:00
plugin-gen.h
poison.h target/or1k: Rename from openrisc 2026-02-09 20:51:52 +01:00
replay-core.h
target_long.h
target_page.h
tb-flush.h
tlb-common.h
tlb-flags.h accel/tcg: Use TLB_FORCE_SLOW not TLB_MMIO for user-only plugins 2026-07-09 06:57:03 +03:00
translation-block.h
translator.h
tswap.h include/exec: Provide the cpu_internal_tswap() functions 2026-03-12 19:24:18 +00:00
vaddr.h
watchpoint.h