qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] cputlb: add tlb_flush_other_cpu
@ 2025-02-25 18:46 Alex Bennée
  2025-02-25 18:46 ` [PATCH 1/4] target/ppc: drop ppc_tlb_invalidate_all from cpu_reset Alex Bennée
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Alex Bennée @ 2025-02-25 18:46 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel Henrique Barboza, Igor Mammedov, Richard Henderson,
	Helge Deller, Paolo Bonzini, Nicholas Piggin, qemu-ppc, Zhao Liu,
	Alex Bennée

This is based on one of the fixes from Igor's series:

  20250207162048.1890669-1-imammedo@redhat.com

Rather than reverting the patch I cleaned up a couple of cases where
we either didn't need to do a flush or we could trivially defer to
when the CPU started running. For the other cases I introduced
tlb_flush_other_cpu() for users like reset and post migration. Any
other users wanting to do a cross-vcpu blat everything function like
tlb_flush() are almost certainly wanting to use a different more
targeted helper which still supports queuing async work.

Alex.

Alex Bennée (3):
  target/ppc: drop ppc_tlb_invalidate_all from cpu_reset
  target/hppa: defer hppa_ptlbe until CPU starts running
  cputlb: introduce tlb_flush_other_cpu for reset use

Igor Mammedov (1):
  tcg:tlb: use tcg_debug_assert() in assert_cpu_is_self()

 include/exec/exec-all.h   | 20 ++++++++++++++++----
 accel/tcg/cputlb.c        | 18 +++++++++++++-----
 accel/tcg/tcg-accel-ops.c |  2 +-
 cpu-target.c              |  2 +-
 target/hppa/cpu.c         | 10 +++++++++-
 target/i386/machine.c     |  2 +-
 target/ppc/cpu_init.c     |  3 ---
 7 files changed, 41 insertions(+), 16 deletions(-)

-- 
2.39.5



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-02-27 10:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 18:46 [PATCH 0/4] cputlb: add tlb_flush_other_cpu Alex Bennée
2025-02-25 18:46 ` [PATCH 1/4] target/ppc: drop ppc_tlb_invalidate_all from cpu_reset Alex Bennée
2025-02-25 19:32   ` Richard Henderson
2025-02-27  0:40   ` Nicholas Piggin
2025-02-25 18:46 ` [PATCH 2/4] target/hppa: defer hppa_ptlbe until CPU starts running Alex Bennée
2025-02-25 19:33   ` Richard Henderson
2025-02-25 19:38     ` Richard Henderson
2025-02-27  9:05       ` Nicholas Piggin
2025-02-27 10:10         ` Alex Bennée
2025-02-25 18:46 ` [PATCH 3/4] cputlb: introduce tlb_flush_other_cpu for reset use Alex Bennée
2025-02-25 19:49   ` Richard Henderson
2025-02-26 14:29     ` Alex Bennée
2025-02-26 17:59       ` Richard Henderson
2025-02-25 18:46 ` [PATCH 4/4] tcg:tlb: use tcg_debug_assert() in assert_cpu_is_self() Alex Bennée
2025-02-25 20:02   ` Richard Henderson
2025-02-25 20:04     ` Richard Henderson
2025-02-26 13:42       ` Igor Mammedov
2025-02-26 13:31     ` Igor Mammedov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).