[PATCH for-8.0 0/7] main-loop: Introduce QEMU_IOTHREAD_LOCK_GUARD

Richard Henderson posted 7 patches 1 year, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221118091858.242569-1-richard.henderson@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Bin Meng <bin.meng@windriver.com>
There is a newer version of this series
include/qemu/main-loop.h  | 29 +++++++++++++++++++++++++++++
accel/tcg/cputlb.c        | 25 ++++++++-----------------
hw/mips/mips_int.c        | 11 +----------
hw/ppc/ppc.c              | 10 +---------
target/ppc/excp_helper.c  | 11 +----------
target/ppc/helper_regs.c  | 14 ++++----------
target/riscv/cpu_helper.c | 10 +---------
7 files changed, 45 insertions(+), 65 deletions(-)
[PATCH for-8.0 0/7] main-loop: Introduce QEMU_IOTHREAD_LOCK_GUARD
Posted by Richard Henderson 1 year, 5 months ago
Simplify the usage of qemu_mutex_lock_iothread.
Split out for ease of review.

Doesn't actually depend on anything, but patchew only handles a single
dependency, so I need to thread the dependency through the patch sets.

Based-on: 20221111074101.2069454-1-richard.henderson@linaro.org
("tcg: Support for Int128 with helpers")


r~


Richard Henderson (7):
  qemu/main-loop: Introduce QEMU_IOTHREAD_LOCK_GUARD
  hw/mips: Use QEMU_IOTHREAD_LOCK_GUARD in cpu_mips_irq_request
  target/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in ppc_maybe_interrupt
  target/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in cpu_interrupt_exittb
  target/riscv: Use QEMU_IOTHREAD_LOCK_GUARD in riscv_cpu_update_mip
  hw/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in ppc_set_irq
  accel/tcg: Use QEMU_IOTHREAD_LOCK_GUARD in io_readx/io_writex

 include/qemu/main-loop.h  | 29 +++++++++++++++++++++++++++++
 accel/tcg/cputlb.c        | 25 ++++++++-----------------
 hw/mips/mips_int.c        | 11 +----------
 hw/ppc/ppc.c              | 10 +---------
 target/ppc/excp_helper.c  | 11 +----------
 target/ppc/helper_regs.c  | 14 ++++----------
 target/riscv/cpu_helper.c | 10 +---------
 7 files changed, 45 insertions(+), 65 deletions(-)

-- 
2.34.1
Re: [PATCH for-8.0 0/7] main-loop: Introduce QEMU_IOTHREAD_LOCK_GUARD
Posted by Paolo Bonzini 1 year, 5 months ago
On 11/18/22 10:18, Richard Henderson wrote:
> Simplify the usage of qemu_mutex_lock_iothread.
> Split out for ease of review.
> 
> Doesn't actually depend on anything, but patchew only handles a single
> dependency, so I need to thread the dependency through the patch sets.
> 
> Based-on: 20221111074101.2069454-1-richard.henderson@linaro.org
> ("tcg: Support for Int128 with helpers")

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

> 
> r~
> 
> 
> Richard Henderson (7):
>    qemu/main-loop: Introduce QEMU_IOTHREAD_LOCK_GUARD
>    hw/mips: Use QEMU_IOTHREAD_LOCK_GUARD in cpu_mips_irq_request
>    target/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in ppc_maybe_interrupt
>    target/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in cpu_interrupt_exittb
>    target/riscv: Use QEMU_IOTHREAD_LOCK_GUARD in riscv_cpu_update_mip
>    hw/ppc: Use QEMU_IOTHREAD_LOCK_GUARD in ppc_set_irq
>    accel/tcg: Use QEMU_IOTHREAD_LOCK_GUARD in io_readx/io_writex
> 
>   include/qemu/main-loop.h  | 29 +++++++++++++++++++++++++++++
>   accel/tcg/cputlb.c        | 25 ++++++++-----------------
>   hw/mips/mips_int.c        | 11 +----------
>   hw/ppc/ppc.c              | 10 +---------
>   target/ppc/excp_helper.c  | 11 +----------
>   target/ppc/helper_regs.c  | 14 ++++----------
>   target/riscv/cpu_helper.c | 10 +---------
>   7 files changed, 45 insertions(+), 65 deletions(-)
>