All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour
@ 2022-03-16 12:40 Christoph Muellner
  2022-03-16 13:43 ` Mahmoud Abumandour
  2022-03-16 15:00 ` Alex Bennée
  0 siblings, 2 replies; 5+ messages in thread
From: Christoph Muellner @ 2022-03-16 12:40 UTC (permalink / raw)
  To: qemu-devel
  Cc: Christoph Muellner, Mahmoud Mandour, Alex Bennée, Alexandre Iooss

QEMU plugins can be loaded via command line arguments or via
the QEMU_PLUGIN environment variable. Currently, only the first method
is documented. Let's document QEMU_PLUGIN.

Signed-off-by: Christoph Muellner <cmuellner@linux.com>
---
 docs/devel/tcg-plugins.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
index f93ef4fe52..ba48be18d0 100644
--- a/docs/devel/tcg-plugins.rst
+++ b/docs/devel/tcg-plugins.rst
@@ -34,6 +34,10 @@ Arguments are plugin specific and can be used to modify their
 behaviour. In this case the howvec plugin is being asked to use inline
 ops to count and break down the hint instructions by type.
 
+QEMU also evaluates the environment variable ``QEMU_PLUGIN``::
+
+  QEMU_PLUGIN="file=tests/plugin/libhowec.so,inline=on,count=hint" $QEMU
+
 Writing plugins
 ---------------
 
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour
  2022-03-16 12:40 [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour Christoph Muellner
@ 2022-03-16 13:43 ` Mahmoud Abumandour
  2022-03-16 13:58   ` Christoph Müllner
  2022-03-16 15:00 ` Alex Bennée
  1 sibling, 1 reply; 5+ messages in thread
From: Mahmoud Abumandour @ 2022-03-16 13:43 UTC (permalink / raw)
  To: Christoph Muellner
  Cc: Alexandre Iooss, Alex Bennée, open list:All patches CC here

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

On Wed, Mar 16, 2022 at 2:40 PM Christoph Muellner <cmuellner@linux.com>
wrote:

> QEMU plugins can be loaded via command line arguments or via
> the QEMU_PLUGIN environment variable. Currently, only the first method
> is documented. Let's document QEMU_PLUGIN.
>
> Signed-off-by: Christoph Muellner <cmuellner@linux.com>
> ---
>  docs/devel/tcg-plugins.rst | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
> index f93ef4fe52..ba48be18d0 100644
> --- a/docs/devel/tcg-plugins.rst
> +++ b/docs/devel/tcg-plugins.rst
> @@ -34,6 +34,10 @@ Arguments are plugin specific and can be used to modify
> their
>  behaviour. In this case the howvec plugin is being asked to use inline
>  ops to count and break down the hint instructions by type.
>
> +QEMU also evaluates the environment variable ``QEMU_PLUGIN``::
> +
> +  QEMU_PLUGIN="file=tests/plugin/libhowec.so,inline=on,count=hint" $QEMU
>

The plugin howvec is in contrib/plugins, so I think giving the correct path
would be
better. Note also that there's a typo in "libhowec.so".

If you want, you could also fix the next example that has the same path or
leave it
for another patch.

+
>  Writing plugins
>  ---------------
>
> --
> 2.35.1
>
>
Other than that,
Reviewed-By: Mahmoud Mandour <ma.mandourr@gmail.com>

Thanks,
Mahmoud

[-- Attachment #2: Type: text/html, Size: 2167 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour
  2022-03-16 13:43 ` Mahmoud Abumandour
@ 2022-03-16 13:58   ` Christoph Müllner
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Müllner @ 2022-03-16 13:58 UTC (permalink / raw)
  To: Mahmoud Abumandour
  Cc: Alexandre Iooss, Alex Bennée, open list:All patches CC here

[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]

On Wed, Mar 16, 2022 at 2:44 PM Mahmoud Abumandour <ma.mandourr@gmail.com>
wrote:

>
>
> On Wed, Mar 16, 2022 at 2:40 PM Christoph Muellner <cmuellner@linux.com>
> wrote:
>
>> QEMU plugins can be loaded via command line arguments or via
>> the QEMU_PLUGIN environment variable. Currently, only the first method
>> is documented. Let's document QEMU_PLUGIN.
>>
>> Signed-off-by: Christoph Muellner <cmuellner@linux.com>
>> ---
>>  docs/devel/tcg-plugins.rst | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
>> index f93ef4fe52..ba48be18d0 100644
>> --- a/docs/devel/tcg-plugins.rst
>> +++ b/docs/devel/tcg-plugins.rst
>> @@ -34,6 +34,10 @@ Arguments are plugin specific and can be used to
>> modify their
>>  behaviour. In this case the howvec plugin is being asked to use inline
>>  ops to count and break down the hint instructions by type.
>>
>> +QEMU also evaluates the environment variable ``QEMU_PLUGIN``::
>> +
>> +  QEMU_PLUGIN="file=tests/plugin/libhowec.so,inline=on,count=hint" $QEMU
>>
>
> The plugin howvec is in contrib/plugins, so I think giving the correct
> path would be
> better. Note also that there's a typo in "libhowec.so".
>

Oh yes, I was just copying the contents of the example above but did not
notice
that this is also wrong.

I'll respin a v2 which fixes the paths.

Thanks!


>
> If you want, you could also fix the next example that has the same path or
> leave it
> for another patch.
>
> +
>>  Writing plugins
>>  ---------------
>>
>> --
>> 2.35.1
>>
>>
> Other than that,
> Reviewed-By: Mahmoud Mandour <ma.mandourr@gmail.com>
>
> Thanks,
> Mahmoud
>

[-- Attachment #2: Type: text/html, Size: 3031 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour
  2022-03-16 12:40 [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour Christoph Muellner
  2022-03-16 13:43 ` Mahmoud Abumandour
@ 2022-03-16 15:00 ` Alex Bennée
  2022-03-16 18:13   ` Christoph Müllner
  1 sibling, 1 reply; 5+ messages in thread
From: Alex Bennée @ 2022-03-16 15:00 UTC (permalink / raw)
  To: Christoph Muellner; +Cc: Alexandre Iooss, Mahmoud Mandour, qemu-devel


Christoph Muellner <cmuellner@linux.com> writes:

> QEMU plugins can be loaded via command line arguments or via
> the QEMU_PLUGIN environment variable. Currently, only the first method
> is documented. Let's document QEMU_PLUGIN.
>
> Signed-off-by: Christoph Muellner <cmuellner@linux.com>
> ---
>  docs/devel/tcg-plugins.rst | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
> index f93ef4fe52..ba48be18d0 100644
> --- a/docs/devel/tcg-plugins.rst
> +++ b/docs/devel/tcg-plugins.rst
> @@ -34,6 +34,10 @@ Arguments are plugin specific and can be used to modify their
>  behaviour. In this case the howvec plugin is being asked to use inline
>  ops to count and break down the hint instructions by type.
>  
> +QEMU also evaluates the environment variable ``QEMU_PLUGIN``::

You should also make it clear this only works for *-user builds of QEMU.
For system emulation you still need to use the CLI interface. 

> +
> +  QEMU_PLUGIN="file=tests/plugin/libhowec.so,inline=on,count=hint" $QEMU
> +
>  Writing plugins
>  ---------------


-- 
Alex Bennée


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour
  2022-03-16 15:00 ` Alex Bennée
@ 2022-03-16 18:13   ` Christoph Müllner
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Müllner @ 2022-03-16 18:13 UTC (permalink / raw)
  To: Alex Bennée
  Cc: Alexandre Iooss, Mahmoud Mandour, qemu-devel@nongnu.org Developers

[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]

On Wed, Mar 16, 2022 at 4:01 PM Alex Bennée <alex.bennee@linaro.org> wrote:

>
> Christoph Muellner <cmuellner@linux.com> writes:
>
> > QEMU plugins can be loaded via command line arguments or via
> > the QEMU_PLUGIN environment variable. Currently, only the first method
> > is documented. Let's document QEMU_PLUGIN.
> >
> > Signed-off-by: Christoph Muellner <cmuellner@linux.com>
> > ---
> >  docs/devel/tcg-plugins.rst | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst
> > index f93ef4fe52..ba48be18d0 100644
> > --- a/docs/devel/tcg-plugins.rst
> > +++ b/docs/devel/tcg-plugins.rst
> > @@ -34,6 +34,10 @@ Arguments are plugin specific and can be used to
> modify their
> >  behaviour. In this case the howvec plugin is being asked to use inline
> >  ops to count and break down the hint instructions by type.
> >
> > +QEMU also evaluates the environment variable ``QEMU_PLUGIN``::
>
> You should also make it clear this only works for *-user builds of QEMU.
> For system emulation you still need to use the CLI interface.


Looks like this is even more restrictive as I can see support only in
linux-user/main.c.
I'll reword this to only be available for Linux user-mode emulation.

Thanks!


>
>
> > +
> > +  QEMU_PLUGIN="file=tests/plugin/libhowec.so,inline=on,count=hint" $QEMU
> > +
> >  Writing plugins
> >  ---------------
>
>
> --
> Alex Bennée
>

[-- Attachment #2: Type: text/html, Size: 2272 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-16 18:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 12:40 [PATCH] docs/tcg-plugins: document QEMU_PLUGIN behaviour Christoph Muellner
2022-03-16 13:43 ` Mahmoud Abumandour
2022-03-16 13:58   ` Christoph Müllner
2022-03-16 15:00 ` Alex Bennée
2022-03-16 18:13   ` Christoph Müllner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.