accel/tcg: Test CPUJumpCache in tb_jmp_cache_clear_page
authorEric Auger <eric.auger@redhat.com>
Fri, 3 Feb 2023 17:15:10 +0000 (18:15 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 4 Feb 2023 16:19:42 +0000 (06:19 -1000)
commit99ab4d500af638ba3ebb20e8aa89d72201b70860
tree63bc6420c21864834d7236a8535291f3e44cb78b
parent579510e196a544b42bd8bca9cc61688d4d1211ac
accel/tcg: Test CPUJumpCache in tb_jmp_cache_clear_page

After commit 4e4fa6c12d ("accel/tcg: Complete cpu initialization
before registration"), it looks the CPUJumpCache pointer can be NULL.
This causes a SIGSEV when running debug-wp-migration kvm unit test.

At the first place it should be clarified why this TCG code is called
with KVM acceleration. This may hide another bug.

Fixes: 4e4fa6c12d ("accel/tcg: Complete cpu initialization before registration")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20230203171510.2867451-1-eric.auger@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c