OSDN Git Service

accel/tcg: Use QEMU_IOTHREAD_LOCK_GUARD in io_readx/io_writex
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 18 Nov 2022 03:59:16 +0000 (19:59 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 5 Jan 2023 00:20:01 +0000 (16:20 -0800)
commit61b59fb2691f749e1b647a512121d6813b23ff44
treeefbeb96cb4e799b0121cdff7cae5e7e3acf8c8dd
parent50c9c512ac15e8eeb0ec63f6a92ba8e017e7676e
accel/tcg: Use QEMU_IOTHREAD_LOCK_GUARD in io_readx/io_writex

Narrow the scope of the lock to the actual read/write,
moving the cpu_transation_failed call outside the lock.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c