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

Richard Henderson posted 10 patches 1 year, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230828185550.573653-1-richard.henderson@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, "Alex Bennée" <alex.bennee@linaro.org>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>
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(-)
[PATCH 00/10] plugin and tcg cleanups to cputlb.c.
Posted by Richard Henderson 1 year, 3 months ago
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(-)

-- 
2.34.1
Re: [PATCH 00/10] plugin and tcg cleanups to cputlb.c.
Posted by Richard Henderson 1 year, 2 months ago
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(-)
>