mbox series

[00/10] plugin and tcg cleanups to cputlb.c.

Message ID 20230828185550.573653-1-richard.henderson@linaro.org
Headers show
Series plugin and tcg cleanups to cputlb.c. | expand

Message

Richard Henderson Aug. 28, 2023, 6:55 p.m. UTC
Based-on: 20230826232415.80233-1-richard.henderson@linaro.org
("[PATCH 0/3] softmmu: Use async_run_on_cpu in tcg_commit")

Remove the SaveIOTLB hackery, now that the flush won't happen
until the TB.  Clean up the locking, so that we don't try to
take the lock twice.  Clean up the iotlb lookup so that we only
perform it once per page, rather than for each aligned piece.


r~


Richard Henderson (10):
  accel/tcg: Simplify tlb_plugin_lookup
  accel/tcg: Split out io_prepare and io_failed
  accel/tcg: Use CPUTLBEntryFull.phys_addr in io_failed
  plugin: Simplify struct qemu_plugin_hwaddr
  accel/tcg: Merge cpu_transaction_failed into io_failed
  accel/tcg: Replace direct use of io_readx/io_writex in do_{ld,st}_1
  accel/tcg: Merge io_readx into do_ld_mmio_beN
  accel/tcg: Merge io_writex into do_st_mmio_leN
  accel/tcg: Introduce do_ld16_mmio_beN
  accel/tcg: Introduce do_st16_mmio_leN

 include/hw/core/cpu.h        |  13 --
 include/qemu/plugin-memory.h |  11 +-
 include/qemu/typedefs.h      |   1 -
 accel/tcg/cputlb.c           | 426 +++++++++++++++++------------------
 plugins/api.c                |  27 +--
 5 files changed, 212 insertions(+), 266 deletions(-)

Comments

Richard Henderson Sept. 9, 2023, 9:02 p.m. UTC | #1
Ping.  Patches 1, 6-10 still need review.

r~

On 8/28/23 11:55, Richard Henderson wrote:
> Based-on: 20230826232415.80233-1-richard.henderson@linaro.org
> ("[PATCH 0/3] softmmu: Use async_run_on_cpu in tcg_commit")
> 
> Remove the SaveIOTLB hackery, now that the flush won't happen
> until the TB.  Clean up the locking, so that we don't try to
> take the lock twice.  Clean up the iotlb lookup so that we only
> perform it once per page, rather than for each aligned piece.
> 
> 
> r~
> 
> 
> Richard Henderson (10):
>    accel/tcg: Simplify tlb_plugin_lookup
>    accel/tcg: Split out io_prepare and io_failed
>    accel/tcg: Use CPUTLBEntryFull.phys_addr in io_failed
>    plugin: Simplify struct qemu_plugin_hwaddr
>    accel/tcg: Merge cpu_transaction_failed into io_failed
>    accel/tcg: Replace direct use of io_readx/io_writex in do_{ld,st}_1
>    accel/tcg: Merge io_readx into do_ld_mmio_beN
>    accel/tcg: Merge io_writex into do_st_mmio_leN
>    accel/tcg: Introduce do_ld16_mmio_beN
>    accel/tcg: Introduce do_st16_mmio_leN
> 
>   include/hw/core/cpu.h        |  13 --
>   include/qemu/plugin-memory.h |  11 +-
>   include/qemu/typedefs.h      |   1 -
>   accel/tcg/cputlb.c           | 426 +++++++++++++++++------------------
>   plugins/api.c                |  27 +--
>   5 files changed, 212 insertions(+), 266 deletions(-)
>