mbox series

[0/6] tcg: fix qemu crash when add assert_cpu_is_self() is enabled and cleanups related to cpu->created check

Message ID 20250129134436.1240740-1-imammedo@redhat.com (mailing list archive)
Headers show
Series tcg: fix qemu crash when add assert_cpu_is_self() is enabled and cleanups related to cpu->created check | expand

Message

Igor Mammedov Jan. 29, 2025, 1:44 p.m. UTC
1st 3 patches are cleanups around cpu_reset logic
4th patch enables assert_cpu_is_self() macro on --enable-debug builds
5th drops offending patch
    (since my understanding of TCG is close to nill, so I'd leave it up to
     TCG folks to fix if needed properly) 
6th is removing no longer needed cpu->created check, since
    by the time it's invoked, cpu->created == true

CC: alex.bennee@linaro.org
CC: richard.henderson@linaro.org
CC: pbonzini@redhat.com 
CC: imp@bsdimp.com
CC: kevans@freebsd.org
CC: gaosong@loongson.cn
CC: laurent@vivier.eu

Igor Mammedov (6):
  bsd-user: drop not longer used target_reset_cpu()
  loongarch: reset vcpu after it's created
  m68k: reset vcpu after it's created
  tcg:tlb: use tcg_debug_assert() in assert_cpu_is_self()
  Revert "tcg/cputlb: remove other-cpu capability from TLB flushing"
  tcg: drop cpu->created check

 bsd-user/aarch64/target_arch_cpu.h |  5 ---
 bsd-user/arm/target_arch_cpu.h     |  4 ---
 bsd-user/i386/target_arch_cpu.h    |  5 ---
 bsd-user/riscv/target_arch_cpu.h   |  4 ---
 bsd-user/x86_64/target_arch_cpu.h  |  5 ---
 accel/tcg/cputlb.c                 | 53 +++++++++++++++++++++---------
 target/loongarch/cpu.c             |  2 +-
 target/m68k/cpu.c                  |  2 +-
 8 files changed, 39 insertions(+), 41 deletions(-)