Re: [Qemu-devel] [RFC 00/48] Plugin support

2018-10-29 Thread Emilio G. Cota
On Mon, Oct 29, 2018 at 12:48:05 +0300, Pavel Dovgalyuk wrote: > > From: Emilio G. Cota [mailto:c...@braap.org] > > - 2-pass translation. Once a "TB translation" callback is called, > > the plugin must know the span of the TB. We should not > > force plugins to guess where the TB will end;

Re: [Qemu-devel] [RFC 00/48] Plugin support

2018-10-29 Thread Pavel Dovgalyuk
> From: Emilio G. Cota [mailto:c...@braap.org] > - 2-pass translation. Once a "TB translation" callback is called, > the plugin must know the span of the TB. We should not > force plugins to guess where the TB will end; that is strictly > QEMU's job, and can change any time. A TB is thus a

[Qemu-devel] [RFC 00/48] Plugin support

2018-10-25 Thread Emilio G. Cota
For those of you who need some context: "plugins" are dynamic libraries that are loaded at run-time. These plugins can subscribe to interesting events (e.g. instruction execution) via an API, to then do something interesting with them. This functionality is similar to what other instrumentation