On 6/24/26 08:49, Philippe Mathieu-Daudé wrote:
The %ignore_memory_transaction_failures flag is meant for legacy
machines, and is defined once per machine. It is applied to all
vCPUs such machine creates, to be eventually only used by the TCG
SoftMMU layer.
We can decouple it of the vCPU layer by making it a TCG-specific
global, setting it once when the machine is initialized (via the
per-accelerator init_machine callback), allowing to remove machine
code in the common vCPU layer.
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
accel/tcg/internal-common.h | 2 ++
include/hw/core/cpu.h | 2 --
accel/tcg/cputlb.c | 8 ++++++--
accel/tcg/tcg-all.c | 3 +++
hw/core/cpu-common.c | 15 ---------------
5 files changed, 11 insertions(+), 19 deletions(-)
Nice. Perhaps note PHASE_MACHINE_CREATED comes before PHASE_ACCEL_CREATED?
Reviewed-by: Richard Henderson <[email protected]>
r~