Re: [Qemu-devel] [RFC v1 09/12] translate-all: introduces tb_flush_safe.

2016-06-06 Thread Sergey Fedorov
On 06/06/16 11:54, Alex Bennée wrote: > Sergey Fedorov writes: > >> On 15/04/16 17:23, Alex Bennée wrote: >>> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h >>> index f695577..858055b 100644 >>> --- a/include/exec/exec-all.h >>> +++ b/include/exec/exec-all.h >>> @@ -307,6 +307,7 @@

Re: [Qemu-devel] [RFC v1 09/12] translate-all: introduces tb_flush_safe.

2016-06-06 Thread Alex Bennée
Sergey Fedorov writes: > On 15/04/16 17:23, Alex Bennée wrote: >> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h >> index f695577..858055b 100644 >> --- a/include/exec/exec-all.h >> +++ b/include/exec/exec-all.h >> @@ -307,6 +307,7 @@ struct TBContext { >> >> void tb_free(Transl

Re: [Qemu-devel] [RFC v1 09/12] translate-all: introduces tb_flush_safe.

2016-06-05 Thread Sergey Fedorov
On 15/04/16 17:23, Alex Bennée wrote: > diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h > index f695577..858055b 100644 > --- a/include/exec/exec-all.h > +++ b/include/exec/exec-all.h > @@ -307,6 +307,7 @@ struct TBContext { > > void tb_free(TranslationBlock *tb); > void tb_flush

[Qemu-devel] [RFC v1 09/12] translate-all: introduces tb_flush_safe.

2016-04-15 Thread Alex Bennée
From: KONRAD Frederic tb_flush is not thread safe we definitely need to exit VCPUs to do that. This introduces tb_flush_safe which just creates an async safe work which will do a tb_flush later. This is called when we run out of space. Signed-off-by: KONRAD Frederic [AJB: merge the various tb_f