Re: [PATCH 1/2] target/i386: Make sure that vsyscall's tb->size != 0

2021-05-14 Thread Richard Henderson
On 5/11/21 11:02 PM, Ilya Leoshkevich wrote: tb_gen_code() assumes that tb->size must never be zero, otherwise it may produce spurious exceptions. For x86_64 this may happen when creating a translation block for the vsyscall page. Fix by pretending that vsyscall translation blocks have at least

[PATCH 1/2] target/i386: Make sure that vsyscall's tb->size != 0

2021-05-11 Thread Ilya Leoshkevich
tb_gen_code() assumes that tb->size must never be zero, otherwise it may produce spurious exceptions. For x86_64 this may happen when creating a translation block for the vsyscall page. Fix by pretending that vsyscall translation blocks have at least one instruction. Signed-off-by: Ilya