[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 14/31] accel/tcg/cpu-exec: Use RCU_READ_LOCK_GUARD
From: |
Richard Henderson |
Subject: |
[PULL 14/31] accel/tcg/cpu-exec: Use RCU_READ_LOCK_GUARD |
Date: |
Tue, 30 Jan 2024 09:01:04 +1000 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Replace the manual rcu_read_(un)lock calls in cpu_exec().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240124074201.8239-2-philmd@linaro.org>
[rth: Use RCU_READ_LOCK_GUARD not WITH_RCU_READ_LOCK_GUARD]
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
accel/tcg/cpu-exec.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
index 40c268bfa1..950dad63cb 100644
--- a/accel/tcg/cpu-exec.c
+++ b/accel/tcg/cpu-exec.c
@@ -1050,7 +1050,7 @@ int cpu_exec(CPUState *cpu)
return EXCP_HALTED;
}
- rcu_read_lock();
+ RCU_READ_LOCK_GUARD();
cpu_exec_enter(cpu);
/*
@@ -1064,8 +1064,6 @@ int cpu_exec(CPUState *cpu)
ret = cpu_exec_setjmp(cpu, &sc);
cpu_exec_exit(cpu);
- rcu_read_unlock();
-
return ret;
}
--
2.34.1
- [PULL 01/31] cpu-exec: simplify jump cache management, (continued)
- [PULL 01/31] cpu-exec: simplify jump cache management, Richard Henderson, 2024/01/29
- [PULL 06/31] include/exec: typedef abi_ptr to vaddr, Richard Henderson, 2024/01/29
- [PULL 07/31] include/exec: Move PAGE_* macros to common header, Richard Henderson, 2024/01/29
- [PULL 08/31] include/exec: Move cpu_*()/cpu_env() to common header, Richard Henderson, 2024/01/29
- [PULL 05/31] include/exec: Use vaddr in DisasContextBase for virtual addresses, Richard Henderson, 2024/01/29
- [PULL 09/31] include/hw/core: Move do_interrupt in TCGCPUOps, Richard Henderson, 2024/01/29
- [PULL 10/31] include/hw/core: Remove i386 conditional on fake_user_interrupt, Richard Henderson, 2024/01/29
- [PULL 12/31] tests/tcg: Factor out gdbstub test functions, Richard Henderson, 2024/01/29
- [PULL 13/31] tests/tcg: Add the PROT_NONE gdbstub test, Richard Henderson, 2024/01/29
- [PULL 11/31] linux-user: Allow gdbstub to ignore page protection, Richard Henderson, 2024/01/29
- [PULL 14/31] accel/tcg/cpu-exec: Use RCU_READ_LOCK_GUARD,
Richard Henderson <=
- [PULL 15/31] target: Make qemu_target_page_mask() available for *-user, Richard Henderson, 2024/01/29
- [PULL 16/31] accel/tcg: Make use of qemu_target_page_mask() in perf.c, Richard Henderson, 2024/01/29
- [PULL 17/31] tcg: Make tb_cflags() usable from target-agnostic code, Richard Henderson, 2024/01/29
- [PULL 19/31] accel/tcg: Move perf and debuginfo support to tcg/, Richard Henderson, 2024/01/29
- [PULL 21/31] accel/tcg: Rename tcg_cpus_destroy() -> tcg_cpu_destroy(), Richard Henderson, 2024/01/29
- [PULL 18/31] accel/tcg: Remove #ifdef TARGET_I386 from perf.c, Richard Henderson, 2024/01/29
- [PULL 20/31] accel/tcg: Rename tcg_ss[] -> tcg_specific_ss[] in meson, Richard Henderson, 2024/01/29
- [PULL 25/31] target/loongarch: Constify loongarch_tcg_ops, Richard Henderson, 2024/01/29
- [PULL 28/31] target/i386: Extract x86_need_replay_interrupt() from accel/tcg/, Richard Henderson, 2024/01/29
- [PULL 22/31] accel/tcg: Rename tcg_cpus_exec() -> tcg_cpu_exec(), Richard Henderson, 2024/01/29