[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/3] accel/tcg: Alternate fix for #1866
From: |
Richard Henderson |
Subject: |
[PATCH v2 0/3] accel/tcg: Alternate fix for #1866 |
Date: |
Fri, 15 Sep 2023 09:32:51 -0700 |
Supercedes: 20230914174436.1597356-1-richard.henderson@linaro.org
("[PATCH 0/6] accel/tcg: Always require can_do_io (#1866)")
An alternate fix for #1866 without touching can_do_io, and is
perhaps a bit cleaner and clearer.
Instead, the current cpu checks whether an address space update
is required on each entry to the slow path. This certainly
catches all i/o. It easily works for the sequential case of
two i/o, the first of which changes the address space and the
second of which requires the new address space.
I've done a tiny bit of performance testing between the two
solutions and it seems to be a wash. So now it's simply a
matter of cleanliness.
r~
Richard Henderson (3):
softmmu: Use cpu->created in tcg_commit
softmmu: Introduce AddressSpaceDispatch generation numbers
softmmu: Introduce cpu_address_space_sync
include/exec/memory.h | 6 ++++++
accel/tcg/cputlb.c | 2 ++
softmmu/physmem.c | 46 ++++++++++++++++++++++++++++++++++++-------
3 files changed, 47 insertions(+), 7 deletions(-)
--
2.34.1
- [PATCH v2 0/3] accel/tcg: Alternate fix for #1866,
Richard Henderson <=
- [PATCH v2 1/3] softmmu: Use cpu->created in tcg_commit, Richard Henderson, 2023/09/15
- [PATCH v2 2/3] softmmu: Introduce AddressSpaceDispatch generation numbers, Richard Henderson, 2023/09/15
- [PATCH v2 3/3] softmmu: Introduce cpu_address_space_sync, Richard Henderson, 2023/09/15
- Re: [PATCH v2 0/3] accel/tcg: Alternate fix for #1866, Philippe Mathieu-Daudé, 2023/09/15
- Re: [PATCH v2 0/3] accel/tcg: Alternate fix for #1866, Richard Henderson, 2023/09/15