Re: [PATCH] tcg: Move tb_phys_invalidate_count to tb_ctx (#457)

2021-07-07 Thread Viktor Ashirov
On Tue, Jul 06, 2021 at 08:55:32PM -0700, Richard Henderson wrote: > We can call do_tb_phys_invalidate from an iocontext, which has > no per-thread tcg_ctx. Move this to tb_ctx, which is global. > The actual update still takes place with a lock held, so only > an atomic set is required, not an

Re: [PATCH] tcg: Move tb_phys_invalidate_count to tb_ctx (#457)

2021-07-07 Thread Viktor Ashirov
On Tue, Jul 06, 2021 at 08:55:32PM -0700, Richard Henderson wrote: > We can call do_tb_phys_invalidate from an iocontext, which has > no per-thread tcg_ctx. Move this to tb_ctx, which is global. > The actual update still takes place with a lock held, so only > an atomic set is required, not an

[PATCH] tcg: Move tb_phys_invalidate_count to tb_ctx (#457)

2021-07-06 Thread Richard Henderson
We can call do_tb_phys_invalidate from an iocontext, which has no per-thread tcg_ctx. Move this to tb_ctx, which is global. The actual update still takes place with a lock held, so only an atomic set is required, not an atomic increment. Resolves: