qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix defect in TranslationBlock insertion procedure
@ 2021-07-04 14:31 Liren Wei
  2021-07-04 14:31 ` [PATCH 1/2] accel/tcg: Hoist tcg_tb_insert() up above tb_link_page() Liren Wei
  2021-07-04 14:31 ` [PATCH 2/2] tcg: Bake tb_destroy() into tcg_region_tree Liren Wei
  0 siblings, 2 replies; 6+ messages in thread
From: Liren Wei @ 2021-07-04 14:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, richard.henderson

TranslationBlocks are now inserted first into QHT and then into its
corresponding tcg_region_tree. This is problematic under MTTCG, as
other vCPU threads may immediately execute it, and even bailout before
the TB itself is inserted into its tcg_region_tree, resulting in an
incorrect CPUState after rewinding.

Liren Wei (2):
  accel/tcg: Hoist tcg_tb_insert() up above tb_link_page()
  tcg: Bake tb_destroy() into tcg_region_tree

 accel/tcg/translate-all.c | 15 ++++++++-------
 include/tcg/tcg.h         |  1 -
 tcg/region.c              | 18 +++++++-----------
 3 files changed, 15 insertions(+), 19 deletions(-)

-- 
2.32.0





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

end of thread, other threads:[~2021-07-07  3:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-04 14:31 [PATCH 0/2] Fix defect in TranslationBlock insertion procedure Liren Wei
2021-07-04 14:31 ` [PATCH 1/2] accel/tcg: Hoist tcg_tb_insert() up above tb_link_page() Liren Wei
2021-07-07  0:12   ` Richard Henderson
2021-07-04 14:31 ` [PATCH 2/2] tcg: Bake tb_destroy() into tcg_region_tree Liren Wei
2021-07-07  0:34   ` Richard Henderson
2021-07-07  3:14     ` Liren Wei

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).