Re: [PATCH v4 0/4] accel/tcg: Make sure that tb->size != 0 after translation

2021-04-16 Thread Ilya Leoshkevich
On Thu, 2021-04-15 at 17:39 +0200, Cornelia Huck wrote: > On Thu, 15 Apr 2021 15:03:01 +0200 > Ilya Leoshkevich wrote: > > > If arch-specific code generates a translation block of size 0, > > tb_gen_code() may generate a spurious exception. > > > > Fix s390x (patch 1), ARM (patch 2) and xtensa

Re: [PATCH v4 0/4] accel/tcg: Make sure that tb->size != 0 after translation

2021-04-15 Thread Cornelia Huck
On Thu, 15 Apr 2021 15:03:01 +0200 Ilya Leoshkevich wrote: > If arch-specific code generates a translation block of size 0, > tb_gen_code() may generate a spurious exception. > > Fix s390x (patch 1), ARM (patch 2) and xtensa (patch 3) and add an > assertion in order to catch such situations

[PATCH v4 0/4] accel/tcg: Make sure that tb->size != 0 after translation

2021-04-15 Thread Ilya Leoshkevich
If arch-specific code generates a translation block of size 0, tb_gen_code() may generate a spurious exception. Fix s390x (patch 1), ARM (patch 2) and xtensa (patch 3) and add an assertion in order to catch such situations earlier (patch 4). v1: